public OpenExchangeRates()
        {
            string apiKey = ConfigurationManager.AppSettings["OpenExchangeRates.ApiKey"];

            if (string.IsNullOrEmpty(apiKey))
            {
                throw new Exception("OpenExchangeRates.org API key is missing. Provide valid API key to retrieve ecxhange rates");
            }
            _oerClient = new OpenExchangeRatesClient {
                AppId = apiKey
            };
        }
 public OpenExchangeRateService(OpenExchangeRatesClient exchangeRateClient,
                                IExchangeRateRepository exchangeRateRepository)
 {
     _exchangeRateClient     = exchangeRateClient;
     _exchangeRateRepository = exchangeRateRepository;
 }