public void TestIdentityRate() { Bank bank = new Bank(); var actual = bank.Rate("USD", "USD"); Assert.Equal(1, actual); }
public Money Reduce(Bank bank, string toCurrency) { int rate = bank.Rate(Currency, toCurrency); return new Money(Amount / rate, toCurrency); }