//Test GetTask to return the task details of requested task id public void ShouldReturnSingleTask() { var taskId = 2; TaskEntity taskDetail = _mockRepository.GetTask(taskId); Assert.IsNotNull(taskDetail); Assert.IsTrue(taskDetail.Task == "Setup Creation"); Assert.IsTrue(taskDetail.ParentTask == "Test project Creation"); Assert.IsTrue(taskDetail.TaskPriority == 2); Assert.IsTrue(taskDetail.TaskStatus == "Y"); Assert.IsTrue(taskDetail.StartDate == new DateTime(2018, 9, 9)); Assert.IsTrue(taskDetail.EndDate == new DateTime(2018, 9, 9)); }
public TaskEntity GetTask(int taskId) { return(_projDL.GetTask(taskId)); }