public ValueAccessComparisonValidator(ValueAccess valueAccess, ComparisonOperator comparisonOperator, string messageTemplate, string tag, bool negated)
     : base(messageTemplate, tag, negated)
 {
     if (valueAccess == null)
     {
         throw new ArgumentNullException("valueAccess");
     }
     this.valueAccess = valueAccess;
     this.comparisonOperator = comparisonOperator;
 }
Esempio n. 2
0
 public ValueAccessValidator(ValueAccess valueAccess, Validator valueValidator)
     : base(null, null)
 {
     if (valueAccess == null)
     {
         throw new ArgumentNullException("valueAccess");
     }
     if (valueValidator == null)
     {
         throw new ArgumentNullException("valueValidator");
     }
     this.valueAccess = valueAccess;
     this.valueValidator = valueValidator;
 }
 public ValueAccessValidatorBuilder(ValueAccess valueAccess, IValidatedElement validatedElement) : base(validatedElement)
 {
     this.valueAccess = valueAccess;
 }
 public ValueAccessComparisonValidator(ValueAccess valueAccess, ComparisonOperator comparisonOperator, string messageTemplate, string tag)
     : this(valueAccess, comparisonOperator, messageTemplate, tag, false)
 {
     this.valueAccess = valueAccess;
     this.comparisonOperator = comparisonOperator;
 }
 public ValueAccessComparisonValidator(ValueAccess valueAccess, ComparisonOperator comparisonOperator, string messageTemplate, bool negated)
     : this(valueAccess, comparisonOperator, messageTemplate, null, negated)
 {
     this.valueAccess = valueAccess;
     this.comparisonOperator = comparisonOperator;
 }
 public ValueAccessComparisonValidator(ValueAccess valueAccess, ComparisonOperator comparisonOperator)
     : this(valueAccess, comparisonOperator, null, (string) null)
 {
 }
 public PropertyComparisonValidator(ValueAccess valueAccess, ComparisonOperator comparisonOperator, bool negated)
     : base(valueAccess, comparisonOperator, null, negated)
 {
 }
 public PropertyComparisonValidator(ValueAccess valueAccess, ComparisonOperator comparisonOperator)
     : base(valueAccess, comparisonOperator)
 {
 }
 public ValueAccessValidatorBuilder(ValueAccess valueAccess, IValidatedElement validatedElement)
     : base(validatedElement)
 {
     this.valueAccess = valueAccess;
 }