ExampleSignalR/TestProject/BaseIntegrationTest.cs

20 lines
455 B
C#
Raw Normal View History

2024-11-12 18:02:09 +05:00
using Microsoft.Extensions.DependencyInjection;
namespace ExampleSignalR.Test;
public abstract class BaseIntegrationTest : IClassFixture<WebAppFactoryFixture>,
IDisposable
{
protected readonly IServiceScope scope;
protected readonly WebAppFactoryFixture factory;
protected BaseIntegrationTest(WebAppFactoryFixture factory)
{
scope = factory.Services.CreateScope();
this.factory = factory;
}
public void Dispose()
{
scope.Dispose();
}
}