public void GetShiftsFromTemplateShiftTest() { _scheduleController = new ScheduleController(new ScheduleRepository()); Employee employee = new Employee(); TemplateSchedule templateSchedule = _templateScheduleController.CreateTemplateSchedule(10, "basicSchedule"); TemplateShift templateShift = _templateShiftController.CreateTemplateShift(DayOfWeek.Friday, 10.0, new TimeSpan(10, 0, 0), 1, employee); TemplateShift templateShift2 = _templateShiftController.CreateTemplateShift(DayOfWeek.Monday, 15.0, new TimeSpan(3, 1, 2), 2, employee); templateSchedule.TemplateShifts.Add(templateShift); templateSchedule.TemplateShifts.Add(templateShift2); Schedule schedule = _scheduleController.GenerateScheduleFromTemplateSchedule(templateSchedule, DateTime.Now); Assert.AreEqual(templateSchedule.TemplateShifts.Count, schedule.Shifts.Count); Assert.AreEqual(schedule.Shifts[1].Hours, templateSchedule.TemplateShifts[1].Hours); }