private RangeValidatorAttribute(IComparable lowerBound, RangeBoundaryType lowerBoundType, IComparable upperBound, RangeBoundaryType upperBoundType) { ValidatorArgumentsValidatorHelper.ValidateRangeValidator(lowerBound, lowerBoundType, upperBound, upperBoundType); this.lowerBound = lowerBound; this.lowerBoundType = lowerBoundType; this.upperBound = upperBound; this.upperBoundType = upperBoundType; }
internal RegexValidatorAttribute(string pattern, string patternResourceName, Type patternResourceType, RegexOptions options) { ValidatorArgumentsValidatorHelper.ValidateRegexValidator(pattern, patternResourceName, patternResourceType); this.pattern = pattern; this.options = options; this.patternResourceName = patternResourceName; this.patternResourceType = patternResourceType; }
public RegexValidator(string pattern, string patternResourceName, Type patternResourceType, RegexOptions options, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateRegexValidator(pattern, patternResourceName, patternResourceType); this.pattern = pattern; this.options = options; this.patternResourceName = patternResourceName; this.patternResourceType = patternResourceType; }
public RelativeDateTimeValidatorAttribute(int lowerBound, DateTimeUnit lowerUnit, RangeBoundaryType lowerBoundType, int upperBound, DateTimeUnit upperUnit, RangeBoundaryType upperBoundType) { ValidatorArgumentsValidatorHelper.ValidateRelativeDatimeValidator(lowerBound, lowerUnit, lowerBoundType, upperBound, upperUnit, upperBoundType); this.lowerBound = lowerBound; this.lowerUnit = lowerUnit; this.lowerBoundType = lowerBoundType; this.upperBound = upperBound; this.upperUnit = upperUnit; this.upperBoundType = upperBoundType; }
public RelativeDateTimeValidator(int lowerBound, DateTimeUnit lowerUnit, RangeBoundaryType lowerBoundType, int upperBound, DateTimeUnit upperUnit, RangeBoundaryType upperBoundType, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateRelativeDatimeValidator(lowerBound, lowerUnit, lowerBoundType, upperBound, upperUnit, upperBoundType); this.lowerBound = lowerBound; this.lowerUnit = lowerUnit; this.upperBound = upperBound; this.upperUnit = upperUnit; this.generator = new RelativeDateTimeGenerator(); DateTime now = DateTime.Now; DateTime time2 = this.generator.GenerateBoundDateTime(lowerBound, lowerUnit, now); DateTime time3 = this.generator.GenerateBoundDateTime(upperBound, upperUnit, now); this.rangeChecker = new RangeChecker <DateTime>(time2, lowerBoundType, time3, upperBoundType); }
public ContainsCharactersValidatorAttribute(string characterSet, ContainsCharacters containsCharacters) { ValidatorArgumentsValidatorHelper.ValidateContainsCharacterValidator(characterSet); this.characterSet = characterSet; this.containsCharacters = containsCharacters; }
public EnumConversionValidator(Type enumType, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateEnumConversionValidator(enumType); this.enumType = enumType; }
public EnumConversionValidatorAttribute(Type enumType) { ValidatorArgumentsValidatorHelper.ValidateEnumConversionValidator(enumType); this.enumType = enumType; }
public DomainValidator(IEnumerable <T> domain, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateDomainValidator(domain); this.domain = domain; }
public DomainValidatorAttribute(params object[] domain) { ValidatorArgumentsValidatorHelper.ValidateDomainValidator(domain); this.domain = domain; }
public TypeConversionValidatorAttribute(Type targetType) { ValidatorArgumentsValidatorHelper.ValidateTypeConversionValidator(targetType); this.targetType = targetType; }
public ContainsCharactersValidator(string characterSet, ExhibFlat.Components.Validation.Validators.ContainsCharacters containsCharacters, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateContainsCharacterValidator(characterSet); this.characterSet = characterSet; this.containsCharacters = containsCharacters; }
public RangeValidator(T lowerBound, RangeBoundaryType lowerBoundType, T upperBound, RangeBoundaryType upperBoundType, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateRangeValidator(lowerBound, lowerBoundType, upperBound, upperBoundType); this.rangeChecker = new RangeChecker <T>(lowerBound, lowerBoundType, upperBound, upperBoundType); }
public TypeConversionValidator(Type targetType, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateTypeConversionValidator(targetType); this.targetType = targetType; }