public WhenRuleThen In(List <string> Values) { var v = new ValueComparison( this.propertyName, Enums.ComparisonOperators.IN, Values); this.AddComparison(v); return(this); }
public ValueRule NotIn(List <string> Values) { this.ArePreconditionsMetToCallOperator(); var sanitizedList = this.SanitizeList(Values); this.valueComparison = new ValueComparison( this.propertyName, Enums.ComparisonOperators.NOTIN, sanitizedList); return(this); }
private void AddComparison(ValueComparison v) { if (!this.whenClauseComplete) { this.whenComparisons.Add(v); } else { this.thenComparisons.Add(v); } this.propertyName = null; }
public WhenRuleThen NotEquals(string Value) { var v = new ValueComparison( this.propertyName, Enums.ComparisonOperators.NOTEQ, new List <string>(1) { Value }); this.AddComparison(v); return(this); }
public ValueRule NotEquals(string Value) { this.ArePreconditionsMetToCallOperator(); this.IsValueNotNullEquivalent(Value); this.valueComparison = new ValueComparison( this.propertyName, Enums.ComparisonOperators.NOTEQ, new List <string>(1) { Value }); return(this); }