Mercurial > silverbladetech
diff SilverlightValidation/SilverlightValidation.PL/Validators/UserModelValidator.cs @ 102:db05a55e3536
INPC tests added
author | stevenhollidge <stevenhollidge@hotmail.com> |
---|---|
date | Sun, 06 May 2012 12:13:29 +0100 |
parents | 188f8b366e87 |
children |
line wrap: on
line diff
--- a/SilverlightValidation/SilverlightValidation.PL/Validators/UserModelValidator.cs Sat May 05 23:04:42 2012 +0100 +++ b/SilverlightValidation/SilverlightValidation.PL/Validators/UserModelValidator.cs Sun May 06 12:13:29 2012 +0100 @@ -6,7 +6,7 @@ { public class UserModelValidator : AbstractValidator<IUserModel> { - public UserModelValidator() + private UserModelValidator() { RuleFor(x => x.Username) .Length(3, 8) @@ -32,5 +32,10 @@ return false; return true; } + + public static UserModelValidator Create() + { + return new UserModelValidator(); + } } }