示例#1
0
        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));
        }
示例#2
0
        public void TestGetTaskByProjectId()
        {
            var item = businessObj.GetTaskByProjectId(1);

            Assert.Greater(item.Count, 0);
        }