How to unit test view model validation, focusing on the controller when the model is bound to a controller action. Welcome to part 4 in the TDD for ASP.NET MVC series. This time, I'll cover how to ...
To get started, download the code from part 4 of this series. Next, open the Views\Home\Index.cshtml Razor view and paste in the markup from Listing 1. Listing 1: Initial Index.cshtml Razor View @{ ...