コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }