Beispiel #1
0
        public void ExchangeRateTest1()
        {
            var x = ExchangeRates.Get(Currency.EUR, Currency.EUR);

            // var y = ExchangeRates.Get(Currency.GBP, Currency.USD);
            //var z = ExchangeRates.Get(Currency.USD, Currency.GBP);
            Assert.IsTrue(x == 1);
        }
Beispiel #2
0
 public decimal GetPrice(Currency currency)
 {
     return(Amount * ExchangeRates.Get(Currency, currency));
 }