public void GivenARequestToTheController() { _factory = new APIWebApplicationFactory(); var options = new WebApplicationFactoryClientOptions { AllowAutoRedirect = false }; _client = _factory.CreateClient(options); }
private IMediator CreateMediator() { // Note: To run db in memory use InMemoryWebApplicationFactory var factory = new APIWebApplicationFactory(); var options = new WebApplicationFactoryClientOptions(); factory.CreateClient(options); this.serviceProvider = factory.Services; var mediator = (IMediator)factory.Services.GetService(typeof(IMediator)); return(mediator); }
public void GivenARequestToTheController() { _factory = new APIWebApplicationFactory(); _client = _factory.CreateClient(); }
public void Setup() { var factory = new APIWebApplicationFactory(); this.client = factory.CreateClient(); }
public void GivenARequestToTheHealthCheck() { _factory = new APIWebApplicationFactory(); _client = _factory.CreateClient(); }
public void SearchControllerTests1() { _factory = new APIWebApplicationFactory(); _client = _factory.CreateClient(); }