Пример #1
0
        public ControllerFixture()
        {
            Web = WebTestClientFactory.Create <Startup>();
            Db  = DbTestClientFactory.Create <DatabaseContext>(ConfigurationKeys.DatabaseConnectionKey, e => new DatabaseContext(e));

            Api = new ApiHttpService(Web.ControllerClientFactory);
        }
Пример #2
0
        public TestClient()
        {
            _client = WebTestClientFactory.Create <Startup>();
            var controllerClientFactory = _client.ControllerClientFactory;

            Values     = new ValuesControllerClient(controllerClientFactory);
            Exceptions = new ExceptionsControllerClient(controllerClientFactory);
            Customers  = new CustomersControllerClient(controllerClientFactory);
        }