コード例 #1
0
            public void TestIdentityRate()
            {
                Bank bank = new Bank();

                var actual = bank.Rate("USD", "USD");

                Assert.Equal(1, actual);
            }
コード例 #2
0
        public Money Reduce(Bank bank, string toCurrency)
        {
            int rate = bank.Rate(Currency, toCurrency);

            return new Money(Amount / rate, toCurrency);
        }