コード例 #1
0
        public async Task Should_greater_than_zero_When_from_and_to_are_different_base_currency()
        {
            var exchangeRateService = new ExchangeRateService();

            var result = await exchangeRateService.GetRateAsync(Currency.TRY, Currency.GBP);

            Assert.IsTrue(result > 0);
        }
コード例 #2
0
        public async Task Should_greater_than_zero_When_to_is_same_base_currency()
        {
            var exchangeRateService = new ExchangeRateService();

            var result = await exchangeRateService.GetRateAsync(Currency.USD, Currency.EUR);

            Assert.IsTrue(result > 0);
        }