示例#1
0
 public PaymentTest(CustomFactory <Startup> factory)
 {
     _factory = factory;
     _client  = _factory.CreateClient(new Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryClientOptions()
     {
         AllowAutoRedirect = false
     });
 }
示例#2
0
 public TestPatient(CustomFactory <Startup> server)
 {
     _server = server;
     _client = _server.CreateClient();
 }