In this second part on TDD for ASP.NET MVC, Eric Vogel covers how to implement unit tests for the remaining CRUD controller actions. Last time I wrote about test-driven development for ASP.NET MVC.
Sometimes what you want to test is how your Action method behaves when it's invoked through an AJAX call. Here's how to mock up that call using Moq. In an earlier column on using Moq to create unit ...