Esempio n. 1
0
        public async Task <IEnumerable <CurrencyData> > GetCurrencyBeetweenDatesAsync(string code, string startTime, string endTime)
        {
            string url = GetUrlForCurrentCurrencies(code, startTime, endTime);

            var response = await _hbpHttpClient.GetExternalResponse(url, _settings.Value.Format);

            return(_deserializationService.GetDataFromResponse <CurrencyResuts>(response).Rates);
        }
        public async Task CallNbpServiceForDataAsync()
        {
            // Act
            var json = await _client.GetExternalResponse(url, "application/json");

            // Assert
            Assert.NotEmpty(json);
        }