public RulesBundle(ContextModel context, IRule rule) { QueryTransport = new QueryTransportRule(context, rule); Required = new ValidOperatorRule <ContextModel>(context, (c) => c.Transport != null, null, rule); StateValid = new StateValidRule(context, rule); BidIdValid = new ValidBidIdRule(context, rule); }
public RulesBundle(ContextModel context, IRule rule) { QueryBid = new QueryBidRule(context, rule); Required = new ValidOperatorRule <ContextModel>(context, (c) => c.Bid != null, null, rule); StateValid = new StateValidRule(context, rule); }