timoch.com
Unit testing model validation with MVC's DataAnnotations
In a previous post, I mentioned that model validation should be tested separately from controller logic. I will demonstrate a way of unit testing the validation of models implemented with System.Co...