コード例 #1
0
        public async Task WhenGetByDate_ShouldReturnListOfCurrencyExhangeRates()
        {
            var service = new SuperRichService(_httpClient);
            var result  = await service.Get(DateTime.Now.Date.Subtract(TimeSpan.FromDays(1)));

            Assert.True(result.Any());
        }
コード例 #2
0
        public async Task WhenGetByDateOnNoData_ShouldReturnNoDataFoundText()
        {
            var service = new SuperRichService(_httpClient);
            var result  = await service.Get(new DateTime(2018, 12, 31));

            Assert.True(result.IsLeft);
        }
コード例 #3
0
        public async Task WhenGetLatest_ShouldReturnListOfCurrencyExhangeRates()
        {
            var service = new SuperRichService(_httpClient);
            var result  = await service.Get();

            Assert.True(result.Any());
        }