Пример #1
0
        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);
        }