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); }
public ExchangeRateCalculator(ICacheExchangeRates ratesCache) { _ratesCache = ratesCache; }