andrebaltieri / FluentValidator

Fluent Validator is a fluent way to use Notification Pattern with your entities
122 stars 40 forks source link

Add default messages to common contract rules #24

Open thiagolunardi opened 6 years ago

thiagolunardi commented 6 years ago

WHEN Contract .Required() .HasMinLen(x => x.Name, 3) AND x.Name = "A"; THEN // output: "Name must have at least 3 characters" ... or so.