Example #1
0
        public void GetAllAvailableShiftsByDepartmentTest()
        {
            List <ScheduleShift> availableScheduleShifts = _scheduleShiftRepository.GetAllAvailableShiftsByDepartmentId(1).ToList();

            Assert.IsNotNull(availableScheduleShifts);
            Assert.AreEqual(2, availableScheduleShifts.Count);
        }
Example #2
0
 public IEnumerable <ScheduleShift> GetAllAvailableShiftsByDepartmentId(int departmentId)
 {
     return(_scheduleShiftRepository.GetAllAvailableShiftsByDepartmentId(departmentId));
 }