public void TestRetrieveShiftDetailsWithInvalidShiftID() { //Arrange int shiftID = 0; IShiftManager _shiftManager = new ShiftManager(_shiftAccessor); //Act ShiftDetailsVM actualResult = _shiftManager.RetrieveShfitDetailsByID(shiftID); }
public void TestRetrieveShiftDetailsWithDifferentExpectedResult() { //Arrange int shiftID = 1; IShiftManager _shiftManager = new ShiftManager(_shiftAccessor); ShiftDetailsVM expectResult = new ShiftDetailsVM() { ShiftID = 2, ShiftDate = DateTime.Now, RoleID = "Role1", ScheduleID = 1, ShiftTimeID = 1, EmployeeID = 1 }; //Act ShiftDetailsVM actualResult = _shiftManager.RetrieveShfitDetailsByID(shiftID); //Assert Assert.AreNotEqual(actualResult.ShiftID, expectResult.ShiftID); }