public void AddParentTaskTest_Success()
        {
            // Arrange
            ProjectMangerModel.ParentTasks model = new ProjectMangerModel.ParentTasks
            {
                ParentTaskID = 3,
                ParentTask   = "Parent Task 3"
            };

            // Act
            var response = taskController.AddParentTask(model);

            // Assert
            Assert.IsTrue(response is OkResult);
        }
        public void AddParentTaskTest_Error()
        {
            // Arrange
            var taskController = new TasksController(null);

            ProjectMangerModel.ParentTasks model = new ProjectMangerModel.ParentTasks
            {
                ParentTaskID = 3,
                ParentTask   = "Parent Task 3"
            };

            // Act
            var response = taskController.AddParentTask(model);

            // Assert
            Assert.IsTrue(response is InternalServerErrorResult);
        }