public void UpdateProjectTest() { // Arrange var controller = new ProjectInfoAPIController(); Project project = new Project { Project_ID = 4, Project1 = "Test Department", }; // Act IHttpActionResult actionResult = controller.PutProjectInfo(project.Project_ID, project); var contentResult = actionResult as NegotiatedContentResult <Project>; Assert.IsNotNull(contentResult); Assert.AreEqual(HttpStatusCode.Accepted, contentResult.StatusCode); Assert.IsNotNull(contentResult.Content); }