Exemplo n.º 1
0
        public ExchangeRatesCacheTests()
        {
            _configuration          = new Mock <IHaveConfigurations>();
            _exchangeRatesRetriever = new Mock <IRetrieveExchangeRates>();
            _cache = new ExchangeRatesCache(_configuration.Object, _exchangeRatesRetriever.Object);

            _eurExchangeRate = new ExchangeRate(
                new Dictionary <Currency, decimal>
            {
                { Currency.EUR, 1m },
                { Currency.GBP, TargetEurGbpRate },
                { Currency.USD, TargetEurUsdRate }
            },
                _updatedAt);
        }
Exemplo n.º 2
0
 public ExchangeRateCalculator(ICacheExchangeRates ratesCache)
 {
     _ratesCache = ratesCache;
 }