public CustomMessageFormatTester() { validator = new TestValidator(); CultureScope.SetDefaultCulture(); }
public ModelLevelValidatorTests() { CultureScope.SetDefaultCulture(); }
public ValidatorDescriptorTester() { CultureScope.SetDefaultCulture(); validator = new TestValidator(); }
public LocalisedMessagesTester() { // ensure the resource provider is reset after any tests that use it. ValidatorOptions.ResourceProviderType = null; CultureScope.SetDefaultCulture(); }
public void Dispose() { CultureScope.SetDefaultCulture(); }
public LessThanOrEqualToValidatorTester() { CultureScope.SetDefaultCulture(); validator = new TestValidator(v => v.RuleFor(x => x.Id).LessThanOrEqualTo(value)); }
public LengthValidatorTests() { CultureScope.SetDefaultCulture(); }
public GreaterThanValidatorTester() { CultureScope.SetDefaultCulture(); validator = new TestValidator(v => v.RuleFor(x => x.Id).GreaterThan(value)); }
public MessageFormatterTests() { CultureScope.SetDefaultCulture(); formatter = new MessageFormatter(); }
public NotNullTester() { CultureScope.SetDefaultCulture(); }
public DisplayAttributeTests() { CultureScope.SetDefaultCulture(); }
public AbstractValidatorTester() { CultureScope.SetDefaultCulture(); validator = new TestValidator(); }
public LessThanValidatorTester() { CultureScope.SetDefaultCulture(); }
public NotEqualValidatorTests() { CultureScope.SetDefaultCulture(); }
public GuidValidatorTests() { CultureScope.SetDefaultCulture(); }
public EmailValidatorTests() { CultureScope.SetDefaultCulture(); }
public LocalisedNameTester() { CultureScope.SetDefaultCulture(); }
public LocalisedMessagesTester() { // ensure the resource provider is reset after any tests that use it. CultureScope.SetDefaultCulture(); }
public ValidateAndThrowTester() { CultureScope.SetDefaultCulture(); }
public ScalePrecisionValidatorTests() { CultureScope.SetDefaultCulture(); }
public EmptyTester() { CultureScope.SetDefaultCulture(); }
public ExclusiveBetweenValidatorTests() { CultureScope.SetDefaultCulture(); fromDate = new DateTime(2009, 1, 1); toDate = new DateTime(2009, 12, 31); }
public ExactLengthValidatorTester() { CultureScope.SetDefaultCulture(); }