protected TestRunnerBase(NtbsWebApplicationFactory <EntryPoint> factory)
 {
     Factory = factory;
     Factory.ConfigureTestClassName(GetType().Name);
     Factory.ConfigureLogger();
     Client = Factory.CreateClient(new WebApplicationFactoryClientOptions
     {
         AllowAutoRedirect = false
     });
 }
Пример #2
0
 protected TestRunnerBase(NtbsWebApplicationFactory <Startup> factory)
 {
     Factory = factory;
     Factory.ConfigureLogger(this.GetType().Name);
     Client = Factory.CreateClientWithoutRedirects();
 }