public List <TaskDetails> GetTaskByProjectId(int id) { List <Task> list = new List <Task>(); if (id > 0) { list = businessObj.GetTaskByProjectId(id); } else { list = businessObj.GetAllTask(); } return(BuildTaskList(list)); }
public void TestGetTaskByProjectId() { var item = businessObj.GetTaskByProjectId(1); Assert.Greater(item.Count, 0); }