Пример #1
0
        public ControllerTestsFixture()
        {
            testServer           = TestServerFactory.GetTestServer();
            using var testClient = testServer.CreateClient();
            _http             = new HttpClient(new TestHttpClientHandler(testServer.CreateHandler()));
            _http.BaseAddress = testClient.BaseAddress;
            dataSamples       = new DataSamples();

            AsyncHelper.RunSync(() => _http.DeleteAsync("api/database"));
            Login();
        }