private async Task <ServerApiClient> CreateApiClient() { SqlTools.GetApiKey(_dbName, out var apiKey, out var apiSecret); var apiClient = new ServerApiClient(); apiClient.Open(new Uri(_serverAddress), apiKey, apiSecret); ApplicationId = await apiClient.EnsureApplication("ForTests"); await apiClient.Reset(ApplicationId, "IntegrationTests"); return(apiClient); }
//[Fact] public async Task Test() { var client = new ServerApiClient(); client.Open(new Uri("http://localhost/coderr/"), "", ""); FindAccountByUserNameResult result = null; try { result = await client.QueryAsync(new FindAccountByUserName("admin")); } catch (WebException) { } result.Should().NotBeNull(); }