public void AddTaskTest_Success()
        {
            // Arrange
            SPAProjectManager.Models.Tasks model = new SPAProjectManager.Models.Tasks
            {
                TaskID    = 4,
                Task      = "Task 5",
                ProjectID = 1,
                Priority  = 10,
                StartDate = DateTime.Now.Date,
                EndDate   = DateTime.Now.Date.AddDays(1)
            };

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

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

            SPAProjectManager.Models.Tasks model = new SPAProjectManager.Models.Tasks
            {
                TaskID    = 5,
                Task      = "Task 5",
                ProjectID = 1,
                Priority  = 10,
                StartDate = DateTime.Now.Date,
                EndDate   = DateTime.Now.Date.AddDays(1)
            };

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

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