public void UpdateProjectTest_Success()
        {
            // Arrange
            SPAProjectManager.Models.Projects model = new SPAProjectManager.Models.Projects
            {
                ProjectID = 1,
                Project   = "Project 1",
                StartDate = DateTime.Now.Date,
                EndDate   = DateTime.Now.Date.AddDays(2)
            };

            // Act
            var response = projectsController.UpdateProject(model);

            // Assert
            Assert.IsTrue(response is OkResult);
        }
        public void AddProjectTest_Error()
        {
            // Arrange
            var projectController = new ProjectController(null);

            SPAProjectManager.Models.Projects model = new SPAProjectManager.Models.Projects
            {
                ProjectID = 4,
                Project   = "Project 4",
                StartDate = DateTime.Now.Date,
                EndDate   = DateTime.Now.Date.AddDays(1)
            };

            // Act
            var response = projectController.AddProject(model);

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