public void GetAllAvailableShiftsByDepartmentTest() { List <ScheduleShift> availableScheduleShifts = _scheduleShiftRepository.GetAllAvailableShiftsByDepartmentId(1).ToList(); Assert.IsNotNull(availableScheduleShifts); Assert.AreEqual(2, availableScheduleShifts.Count); }
public IEnumerable <ScheduleShift> GetAllAvailableShiftsByDepartmentId(int departmentId) { return(_scheduleShiftRepository.GetAllAvailableShiftsByDepartmentId(departmentId)); }