Exemplo n.º 1
0
        public override async Task <bool> Passes()
        {
            bool result = false;

            if (ComparisonValue is T comparisonValue)
            {
                result = Set?.Contains(comparisonValue) ?? false;
            }
            return(result && await RuleTree.PassesAnd(Children));
        }
Exemplo n.º 2
0
        public async override Task <bool> Passes()
        {
            bool result = false;

            if (ComparisonValue is IComparable comparisonValue)
            {
                result = comparisonValue.IsGreaterThanOrEqualTo(From) &&
                         comparisonValue.IsLessThanOrEqualTo(To);
            }

            return(result && await RuleTree.PassesAnd(Children));
        }
Exemplo n.º 3
0
 public async override Task <bool> Passes()
 => await RuleTree.PassesAnd(Children);
Exemplo n.º 4
0
 public override async Task <bool> Passes()
 => _func() && await RuleTree.PassesAnd(Children);