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); } }
public void TestViewTasks() { TaskDAL pobj = new TaskDAL(); var p = pobj.GetAllTask(); }
public List <Task> GetAll() { TaskDAL taskDAL = new TaskDAL(); return(taskDAL.GetAllTask()); }