public Task CreateTask(int projectID) { // Arrange ////////////////////////////////////////// // Act Task task = new Task() { Code = "Test", Name = "Test Task", ProjectID = projectID }; ActionResult taskResult = projectController.CreateTask(task); ////////////////////////////////////////// // Assert Assert.IsNotNull(taskResult); return(task); }