When testing my controller\'s actions the ModelState is always valid.
public class Product { public int Id { get; set; } [Required] [StringLengt
If you want to test your validation action's behavior you could simply add ModelStateError:
ModelState.AddModelError("Password", "The Password field is required");