public void TryGet_NonExistingRate_NoException()
        {
            var subject = new TabulatedExchangeRateProvider();

            ExchangeRate existing = new ExchangeRate(CurrencyIsoCode.AED, CurrencyIsoCode.AED, 1);

            Assert.That(subject.TryGet(CurrencyIsoCode.AED, CurrencyIsoCode.AFN, out existing), Is.False);
            Assert.That(existing, Is.Null);
        }
        public void TryGet_ExistingRate_RateReturned()
        {
            var subject = new TabulatedExchangeRateProvider();

            subject.Add(CurrencyIsoCode.AED, CurrencyIsoCode.AFN, 1.5m);

            ExchangeRate existing;

            Assert.That(subject.TryGet(CurrencyIsoCode.AED, CurrencyIsoCode.AFN, out existing), Is.True);
            Assert.That(existing.From, Is.EqualTo(CurrencyIsoCode.AED));
            Assert.That(existing.To, Is.EqualTo(CurrencyIsoCode.AFN));
            Assert.That(existing.Rate, Is.EqualTo(1.5m));
        }