public HomeControllerTests(WebApplicationFactory <Startup> factory) { _factory = _factory = factory.UpdateDependencyInjection(new List <DependencyUpdate> { new DependencyUpdate(typeof(ILoggerFactory), typeof(NullLoggerFactory)) }); _client = _factory.CreateClient(new WebApplicationFactoryClientOptions { AllowAutoRedirect = false }); }
public HostResolutionStrategyTests(WebApplicationFactory <Startup> factory) { _factory = factory.UpdateDependencyInjection(new List <DependencyUpdate> { new DependencyUpdate(typeof(ITenantResolutionStrategy), typeof(HostResolutionStrategy)), new DependencyUpdate(typeof(ILoggerFactory), typeof(NullLoggerFactory)) }); _client = _factory.CreateClient(new WebApplicationFactoryClientOptions { AllowAutoRedirect = false }); }