Пример #1
0
        public void GetActualRateTest()
        {
            var rates = _rateService.GetActualRates(DateTime.Now);

            // should be one rate for each of currency pair
            Assert.IsTrue(rates.Any());

            // usd/eur = 0.9m should be as actual
            Assert.AreEqual(rates.First(r => r.CurrencyId == 1 && r.TargetCurrencyId == 2).CrossCourse, 0.9m);
        }