public IntegrationTestsBase(StudentsApiClientWebApplicationFactory <Startup> factory)
 {
     client             = factory.CreateClient();
     client.BaseAddress = new Uri("https://localhost:44355/");
     client.DefaultRequestHeaders.Add("api-version", "2.0");
     client.DefaultRequestHeaders.Add("x-api-key", "123456");
     this.factory = factory;
 }
 public StudentsStatisticsControllerTests(StudentsApiClientWebApplicationFactory <Startup> factory) : base(factory)
 {
 }
예제 #3
0
 public IntegrationTestsBase(StudentsApiClientWebApplicationFactory <Startup> factory)
 {
     client             = factory.CreateClient();
     client.BaseAddress = new Uri("https://localhost:5001/");
     this.factory       = factory;
 }