public IntegrationTestsFixture(ApiFactory <TStartup> apiFactory, HttpClient httpClient)
        {
            //WebApplicationFactoryClientOptions factoryClientOptions = new WebApplicationFactoryClientOptions() { };

            ApiFactory = new ApiFactory <TStartup>();
            HttpClient = ApiFactory.CreateClient();
        }
Пример #2
0
 public AuthorizeTests(ApiFactory <ApiProject.Startup> factory)
 {
     _factory = factory;
     _client  = factory.CreateClient(new WebApplicationFactoryClientOptions()
     {
         AllowAutoRedirect = false,
     });
 }
Пример #3
0
 public void TestInitialize()
 {
     factory = new ApiFactory(FakeDatabaseType.SQLiteInMemory, MockServices, SeedDatabase);
     client  = factory.CreateClient(ValidOwnerToken);
 }
Пример #4
0
 public ApiTodoItemControllerList(ApiFactory <Startup> factory)
 {
     _client = factory.CreateClient();
 }
Пример #5
0
 public MetaControllerInfo(ApiFactory <Startup> factory)
 {
     _client = factory.CreateClient();
 }