Exemple #1
0
 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
     });
 }
Exemple #2
0
 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
     });
 }