//Test GetAll tasks to return all tasks public void ShouldReturnAllTask() { List <TaskEntity> taskList = _mockRepository.GetAllTasks(); Assert.IsTrue(taskList.Count() == 5); Assert.IsTrue(taskList.ElementAt(0).Task == "Test project Creation"); Assert.IsTrue(taskList.ElementAt(1).ParentId == 1); Assert.IsTrue(taskList.ElementAt(4).TaskStatus == "N"); Assert.IsTrue(taskList.ElementAt(2).TaskPriority == 2); Assert.IsTrue(taskList.ElementAt(3).StartDate == new DateTime(2018, 9, 9)); Assert.IsTrue(taskList.ElementAt(3).EndDate == new DateTime(2018, 9, 10)); }
public List <TaskEntity> GetAllTasks() { return(_projDL.GetAllTasks()); }