using Microsoft.Extensions.DependencyInjection; namespace ExampleSignalR.Test; public abstract class BaseIntegrationTest : IClassFixture, 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(); } }