Пример #1
0
        public IHttpActionResult AddParentTask(ParentTask parenttask)
        {
            businessObj.AddParentTask(parenttask);
            var list = businessObj.GetAllParentTask();

            return(Ok(list));
        }
Пример #2
0
        public void BenchmarkAddParentTask()
        {
            ParentTask ptask = new ParentTask();

            ptask.ParentTaskName = "PerTask";

            obj.AddParentTask(ptask);
        }
Пример #3
0
        public void TestAddParentTask()
        {
            ParentTask item = new ParentTask();

            item.ParentTaskName = "SBA Project Test";
            businessObj.AddParentTask(item);

            int actual = businessObj.GetAllParentTask().Count;

            parentCount = actual;
            Assert.Greater(actual, 0);
        }