public override IEnumerable <CartLineComponent> MatchingLines(IRuleExecutionContext context) { return(TargetCategorySitecoreId.YieldCartLinesWithCategory(context)); }
public bool Evaluate(IRuleExecutionContext context) { return(TargetCategorySitecoreId.YieldCartLinesWithCategory(context).Any()); }