public IHttpActionResult Get()
        {
            var data = dal.GetAllTask();

            if (data == null)
            {
                return(NotFound());
            }

            return(Ok(data));
        }
        public void FindAllTasks()
        {
            TaskDAL pobj = new TaskDAL();
            List <ProjectManagerDAL.Task> tasks = pobj.GetAllTask();

            foreach (var x in tasks)
            {
                Assert.IsNotNull(x.Task_Id);
                Assert.IsNotNull(x.Task_Name);
                Assert.IsNotNull(x.Start_Date);
                Assert.IsNotNull(x.Priority);
                Assert.IsNotNull(x.End_Date);
                Assert.IsNotNull(x.Project_Id);
            }
        }
Exemple #3
0
 public void TestViewTasks()
 {
     TaskDAL pobj = new TaskDAL();
     var     p    = pobj.GetAllTask();
 }
Exemple #4
0
        public List <Task> GetAll()
        {
            TaskDAL taskDAL = new TaskDAL();

            return(taskDAL.GetAllTask());
        }