private async Task ExecuteTestSequenceAsync() { // тесты самого сервиса var result = await _keyValidator.GetAllKnownApplicationsAsync(); var isValid = await _keyValidator.GetPermittedApplicationsAsync("Tort"); var request = new ApplicationCodeAuthKeyValidateRequest("Nep", "Tort", "1"); var validateKey = await _keyValidator.ValidateKeyAsync(request); //тесты апи var apiRequest = new ValidateKeyRequest("Nep", "Tort", "1"); var isValidFromApi = await _keyCheckerApiClient.ValidateApplicationKey(apiRequest); if (isValidFromApi) { Console.WriteLine("Апи сработало. Ну и отлично."); } }