public void TestSelectShiftsByScheduleAndInvalidDepartmentID() { //Arrange string departmentID = "Fake4"; int scheduleID = 1; IShiftManager _shiftManager = new ShiftManager(_shiftAccessor); //Act List <ShiftUserVM> actualResult = _shiftManager.RetrieveShiftsByScheduleAndDepartmentID(scheduleID, departmentID); Assert.AreEqual(null, actualResult); }
public void TestSelectShiftsByScheduleAndInvalidScheduleID() { //Arrange int expectedResult = 0; string departmentID = "Test1"; int scheduleID = 8; IShiftManager _shiftManager = new ShiftManager(_shiftAccessor); //Act List <ShiftUserVM> actualResult = _shiftManager.RetrieveShiftsByScheduleAndDepartmentID(scheduleID, departmentID); Assert.AreEqual(expectedResult, actualResult.Count); }