public ControllerFixture() { Web = WebTestClientFactory.Create <Startup>(); Db = DbTestClientFactory.Create <DatabaseContext>(ConfigurationKeys.DatabaseConnectionKey, e => new DatabaseContext(e)); Api = new ApiHttpService(Web.ControllerClientFactory); }
public TestClient() { _client = WebTestClientFactory.Create <Startup>(); var controllerClientFactory = _client.ControllerClientFactory; Values = new ValuesControllerClient(controllerClientFactory); Exceptions = new ExceptionsControllerClient(controllerClientFactory); Customers = new CustomersControllerClient(controllerClientFactory); }