public ExchangeRatesCache(IHaveConfigurations configuration, IRetrieveExchangeRates exchangeRatesRetriever) { _configuration = configuration; _exchangeRatesRetriever = exchangeRatesRetriever; _cache = new Dictionary <Currency, IAmExchangeRate>(); }
public ExchangeRatesRetriever(IHaveConfigurations configuration, IHttpClientFactory clientFactory) { _ratesApiUrl = new Uri($"{configuration.RatesApiBaseUrl}/exchangerates/api/latest/"); _clientFactory = clientFactory; }