示例#1
0
        public WeekViewModelFactory([NotNull] LessonMenuItemsFactory menuItemsFactory, bool isTeacher, int id)
        {
            if (menuItemsFactory == null)
            {
                throw new ArgumentNullException("menuItemsFactory");
            }

            _dayViewModelFactory = new DayViewModelFactory(menuItemsFactory, isTeacher, id);
        }
示例#2
0
 public DayViewModelFactory([NotNull] LessonMenuItemsFactory menuItemsFactory, bool isTeacher, int holderId)
 {
     if (menuItemsFactory == null)
     {
         throw new ArgumentNullException("menuItemsFactory");
     }
     _menuItemsFactory = menuItemsFactory;
     _isTeacher        = isTeacher;
     _holderId         = holderId;
 }