Now, turn your attention to the web API controllers. As covered in a previous chapter, you could simply create a new instance of the controller and call the method under test. However, that would not exercise the entire system.
It would be far better to call the method with an HTTP request. Deploying to a web server would be prohibitively time-consuming.