public CallbackTests(IntegrationTestsWebApplicationFactory <Startup> factory, ITestOutputHelper output) { Factory = factory; Output = output; Factory.ClearInvocations(); Client = factory.CreateClient(new WebApplicationFactoryClientOptions { AllowAutoRedirect = false }); }
public ControllerTestsBase(IntegrationTestsWebApplicationFactory <TestStartup> factory, string baseUri) { _factory = factory; _mapper = _factory.Services.GetRequiredService <IMapper>(); context = ConfigureTestDbContext(); context.Database.Migrate(); db = new UnitOfWork(context); if (!String.IsNullOrEmpty(baseUri)) { _factory.ClientOptions.BaseAddress = new Uri(baseUri); } _client = _factory.CreateClient(); }
public DeleteUsersTests(IntegrationTestsWebApplicationFactory <Web.Startup> factory) { client = factory.CreateClient(); }
public PostRestaurantTests(IntegrationTestsWebApplicationFactory <Web.Startup> factory) { client = factory.CreateClient(); }