andrewabest / Conventional

A suite of convention specifications for enforcing type and style conventions in your codebase
Microsoft Public License
97 stars 29 forks source link

Add convention for Properties(of type) must have Attribute(of type) #27

Closed tristanmenzel closed 6 years ago

tristanmenzel commented 8 years ago

Eg. ensure all string properties on an entity have a MaxLength attribute.

Entities().MustConformTo(Convention.PropertiesOfTypeMustHaveAttribute(PROPERTY_TYPES, ATTRIBUTE_TYPES))