示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:WheelOfFate.Web.Controllers.SupportSchedulesController"/> class.
 /// </summary>
 /// <param name="calendar">Calendar.</param>
 /// <param name="supportScheduleRepository">Support schedule repository.</param>
 /// <param name="supportScheduler">Support scheduler.</param>
 public SupportSchedulesController(
     ICalendar calendar,
     ISupportScheduleRepository supportScheduleRepository,
     SupportScheduler supportScheduler)
 {
     _calendar = calendar;
     _supportScheduleRepository = supportScheduleRepository;
     _supportScheduler          = supportScheduler;
 }
示例#2
0
 public SupportCandidateSelector(
     IEngineerRepository engineerRepository,
     ISupportScheduleRepository supportScheduleRepository,
     IDayOffFilter dayOffFilter,
     IShiftAvailabilityReconciler shiftAvailabilityReconciler)
 {
     _engineerRepository        = engineerRepository;
     _supportScheduleRepository = supportScheduleRepository;
     _dayOffFilter = dayOffFilter;
     _shiftAvailabilityReconciler = shiftAvailabilityReconciler;
 }
 public SupportScheduler(
     ICalendar calendar,
     ISupportScheduleRepository supportScheduleRepository,
     ISupportScheduleDateValidator supportScheduleDateValidator,
     ISupportCandidateSelector supportCandidateSelector,
     IRandomSelector randomSelector)
 {
     _calendar = calendar;
     _supportScheduleRepository    = supportScheduleRepository;
     _supportScheduleDateValidator = supportScheduleDateValidator;
     _supportCandidateSelector     = supportCandidateSelector;
     _randomSelector = randomSelector;
 }
示例#4
0
 public DayOffFilter(ISupportScheduleRepository supportScheduleRepository)
 {
     _supportScheduleRepository = supportScheduleRepository;
 }
示例#5
0
 public ShiftAvailabilityReconciler(ISupportScheduleRepository supportScheduleRepository)
 {
     _supportScheduleRepository = supportScheduleRepository;
 }