public void Test_D_GetByName()
        {
            TaskBL obj      = new TaskBL();
            var    TestTask = obj.GetByName(Name);

            Assert.AreEqual(TestTask.TaskName, Name);
        }
        public void Test_G_UpdateTask()
        {
            Task item = new Task()
            {
                TaskId = AddDelTestId, TaskName = "TestTaskUpdated", ParentTask = "Task11", Priority = 2, SDate = DateTime.Now, EDate = DateTime.Now, TaskEndFlag = true
            };
            TaskBL obj = new TaskBL();

            obj.UpdateTask(item);
            var res = obj.GetByName("TestTaskUpdated");

            Assert.IsNotNull(res);
        }
        public void Test_D_AddTask()
        {
            Task item = new Task()
            {
                TaskId = 100, TaskName = "TestTask", ParentTask = "Task11", Priority = 2, SDate = DateTime.Now, EDate = DateTime.Now, TaskEndFlag = true
            };
            TaskBL obj = new TaskBL();

            obj.AddTask(item);
            var res = obj.GetByName("TestTask");

            if (res != null)
            {
                AddDelTestId = res.TaskId;
            }
            Assert.IsNotNull(res);
        }
        public void Test_F_AddTask()
        {
            //Task item = new Task() { TaskId = 100, TaskName = "TestTask", ParentTask = "Task11", Priority = 2, SDate = DateTime.Now, EDate = DateTime.Now, TaskEndFlag = true };
            Task item = new Task()
            {
                TaskId = 1000, ParentId = 1, ProjectId = 1003, UserId = 2, TaskName = "UnitTestTask", ParentTask = "Task 10", Priority = 2, SDate = DateTime.Now, EDate = DateTime.Now, Status = "Started", TaskEndFlag = true
            };
            TaskBL obj = new TaskBL();

            obj.AddTask(item);
            var res = obj.GetByName("UnitTestTask");

            if (res != null)
            {
                AddDelTestId = res.TaskId;
            }
            Assert.IsNotNull(res);
        }