예제 #1
0
        public WhenRuleThen In(List <string> Values)
        {
            var v = new ValueComparison(
                this.propertyName,
                Enums.ComparisonOperators.IN,
                Values);

            this.AddComparison(v);

            return(this);
        }
예제 #2
0
        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);
        }
예제 #3
0
        private void AddComparison(ValueComparison v)
        {
            if (!this.whenClauseComplete)
            {
                this.whenComparisons.Add(v);
            }
            else
            {
                this.thenComparisons.Add(v);
            }

            this.propertyName = null;
        }
예제 #4
0
        public WhenRuleThen NotEquals(string Value)
        {
            var v = new ValueComparison(
                this.propertyName,
                Enums.ComparisonOperators.NOTEQ,
                new List <string>(1)
            {
                Value
            });

            this.AddComparison(v);

            return(this);
        }
예제 #5
0
        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);
        }