Beispiel #1
0
        public void GetParentTasks()
        {
            ProjectManagerBL   tb     = new ProjectManagerBL(dbContext.Object);
            List <ParentTasks> result = tb.GetParentTasks();

            Assert.AreEqual(result.Count, 2);
            Assert.AreEqual(result[0].ParentTaskId, 1);
            Assert.AreEqual(result[0].ParentTaskName, "ParentTask1");
        }
Beispiel #2
0
        public IHttpActionResult GetParentTasks()
        {
            ProjectManagerBL obj = new ProjectManagerBL(_db);

            return(Ok(obj.GetParentTasks()));
        }