Пример #1
0
 public SeriesLogic(IEnumerable<ISeriesEvaluator> evaluators, ISeriesCache cache)
 {
     if (evaluators == null) throw new ArgumentNullException(nameof(evaluators));
     if (cache == null) throw new ArgumentNullException(nameof(cache));
     _evaluators = evaluators;
     _cache = cache;
 }
Пример #2
0
        public SeriesLogic(IEnumerable <ISeriesEvaluator> evaluators, ISeriesCache cache)
        {
            if (evaluators == null)
            {
                throw new ArgumentNullException(nameof(evaluators));
            }
            if (cache == null)
            {
                throw new ArgumentNullException(nameof(cache));
            }

            _evaluators = evaluators;
            _cache      = cache;
        }