public async Task ShouldUpdateEmployeeDepartmentHistoryRecord() { int employeeID = 1; short deptID = 10; byte shiftID = 3; DateTime startDate = new DateTime(2009, 1, 14); var deptHistory = await _deptHistoryRepo.GetDepartmentHistoryByID(employeeID, deptID, shiftID, startDate); var endDate = new DateTime(2019, 1, 1); deptHistory.EndDate = endDate; await _deptHistoryRepo.UpdateDepartmentHistory(deptHistory); var result = await _deptHistoryRepo.GetDepartmentHistoryByID(employeeID, deptID, shiftID, startDate); Assert.Equal(endDate, result.EndDate); }