public ClientApiTest(IntegrationTestFixture <StartupApiTests> integrationTestFixture) { _integrationTestFixture = integrationTestFixture; var stateApiTest = new CityApiTest(_integrationTestFixture); Task.Run(() => stateApiTest.AddCityAsync(20)).Wait(); }
private async Task <List <ProviderViewModel> > GenerateProviders(int qty, int qtyAddress, int qtyContact, bool isValidAddress = true, bool isValidContact = true) { var cityApiTest = new CityApiTest(_integrationTestFixture); await cityApiTest.AddCityAsync(20); var cities = await cityApiTest.GetCitiesAsync(); var providerFixture = new ProviderTestFixture(); var providers = providerFixture.GenerateValidProviderViewModel(qty, cities, qtyAddress, qtyContact, isValidAddress, isValidContact); return(providers); }