Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Forked from anonymous/Basic.cs
Created December 22, 2012 18:01
Show Gist options
  • Save jmarnold/4360250 to your computer and use it in GitHub Desktop.
Save jmarnold/4360250 to your computer and use it in GitHub Desktop.
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