20 lines
455 B
C#
20 lines
455 B
C#
|
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();
|
||
|
}
|
||
|
}
|