public TimelineController(ICalendarItemRepository calendarItemRepository, IDateTimeFormatter dateTimeFormatter, IDateTimePassedEvaluator dateTimePassedEvaluator)
        {
            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            if (dateTimeFormatter == null)
            {
                throw new ArgumentNullException("dateTimeFormatter");
            }

            if (dateTimePassedEvaluator == null)
            {
                throw new ArgumentNullException("dateTimePassedEvaluator");
            }

            this.calendarItemRepository = calendarItemRepository;
            this.dateTimeFormatter = dateTimeFormatter;
            this.dateTimePassedEvaluator = dateTimePassedEvaluator;
        }
Пример #2
0
        public TimelineController(ICalendarItemRepository calendarItemRepository, IDateTimeFormatter dateTimeFormatter, IDateTimePassedEvaluator dateTimePassedEvaluator)
        {
            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            if (dateTimeFormatter == null)
            {
                throw new ArgumentNullException("dateTimeFormatter");
            }

            if (dateTimePassedEvaluator == null)
            {
                throw new ArgumentNullException("dateTimePassedEvaluator");
            }

            this.calendarItemRepository  = calendarItemRepository;
            this.dateTimeFormatter       = dateTimeFormatter;
            this.dateTimePassedEvaluator = dateTimePassedEvaluator;
        }