Top "Validationattribute" questions

Used for classes Validation Attribute Classes in .NET within the System.

How to force ValidationAttribute to mark specified object members as invalid?

I've got my model which contains some members: public class Address { public Street { get; set;} public City { get; set; } public …

c# asp.net asp.net-mvc validation validationattribute
Testing ValidationAttribute that overrides IsValid

I'm having a bit of trouble getting my head around testing my custom validation attribute. As the method signature is …

c# asp.net-mvc unit-testing moq validationattribute
MVC RequiredIf Attribute - IsValid value parameter always null

I am implementing a RequiredIf validation attribute and the value being passed to the IsValid method is always null. RequiredIfAttribute …

asp.net-mvc-4 data-annotations validationattribute