Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2012 17:56
Show Gist options
  • Save anonymous/4360234 to your computer and use it in GitHub Desktop.
Save anonymous/4360234 to your computer and use it in GitHub Desktop.
Validation Scenario
var validator = Validator.BasicValidator();
var theModel = new AddressModel();
var scenario = ValidationScenario<AddressModel>.For(x =>
{
x.Model = theModel;
x.FieldRule(new MinimumLengthRule(5));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment