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

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