public static bool Satisfies(this IFlexpression source, IFlexpressionSpecification flexpressionSpecification) { var visitor = new SpecificationToVisitorAdapter(flexpressionSpecification); var satisfied = source.AcceptVisitor(visitor); return(satisfied); }
public static bool IsSatisfiedBy(this IFlexpressionSpecification flexpressionSpecification, IFlexpression flexpression) { var visitor = new SpecificationToVisitorAdapter(flexpressionSpecification); var satisfied = flexpression.AcceptVisitor(visitor); return(satisfied); }
public SpecificationToVisitorAdapter(IFlexpressionSpecification specification) { _specification = specification; }