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); }
public decimal GetPrice(Currency currency) { return(Amount * ExchangeRates.Get(Currency, currency)); }