public MainViewModel(ICourseRepository courseRepository, IHistoryNavigationService navigationService, IWeekDayService weekDayService) { _courseRepository = courseRepository; _navigationService = navigationService; _weekDayService = weekDayService; _selectedWeekDay = _weekDayService.GetToday(); }
public CourseViewModel(ICourseRepository courseRepository, IHistoryNavigationService navigationService, IInteractionService interactionService, IWeekDayService weekDayService) { _courseRepository = courseRepository; _navigationService = navigationService; _interactionService = interactionService; _weekDayService = weekDayService; Messenger.Default.Register <Course>(this, Messages.Select, SelectCourse); if (IsInDesignModeStatic) { Course = courseRepository.GetCoursesLazy().FirstOrDefault(); } }
public WeekDayController(IWeekDayService weekDayService) { this._weekDayService = weekDayService; }