public void Add_InvalidObjectPassed_ReturnsBadRequest() { // Arrange var nameMissingItem = new VenueModel() { Id = 1 }; _controller.ModelState.AddModelError("Name", "Required"); // Act var badResponse = _controller.Post(nameMissingItem); // Assert Assert.IsType <BadRequestObjectResult>(badResponse); }