public void Ctor_DefaultRateFactory_AddInstancesOfExchangeRate()
        {
            var          subject = new TabulatedExchangeRateProvider();
            ExchangeRate added   = subject.Add(CurrencyIsoCode.AED, CurrencyIsoCode.AFN, 1);

            Assert.That(added.GetType(), Is.SameAs(typeof(ExchangeRate)));
        }
        public void Ctor_CustomRateFactory_AddInstancesOfCustomExchangeRate()
        {
            var          subject = new TabulatedExchangeRateProvider((from, to, rate) => new CustomExchangeRate(from, to, rate));
            ExchangeRate added   = subject.Add(CurrencyIsoCode.AED, CurrencyIsoCode.AFN, 1);

            Assert.That(added.GetType(), Is.SameAs(typeof(CustomExchangeRate)));
        }