Пример #1
0
        public CachedCurrencyRates(System.Web.Caching.Cache cache, ICurrencyRates rates)
        {
            if (rates == null)
            {
                throw new ArgumentNullException(nameof(rates));
            }
            if (cache == null)
            {
                throw new ArgumentNullException(nameof(cache));
            }

            _source = rates;
            _cache  = cache;
        }
Пример #2
0
 public AuthenticationController(ICurrencyRates currencyRates)
 {
     this.currencyRates = currencyRates;
 }
Пример #3
0
 public CurrencyService(ICurrencyRates currencyRates)
 {
     cr = currencyRates;
 }
Пример #4
0
 public DashboardController(ICurrencyRates currencyRates)
 {
     this.currencyRates = currencyRates;
 }