示例#1
0
 public RulesBundle(ContextModel context, IRule rule)
 {
     CustomerDivisionAuthorizationRule = new ResourceAuthorizationRule <Olma.CustomerDivision, CanCreateOrderRequirement, DivisionPermissionResource>(context.OrderGroupsCreateRequest.DivisionId, rule);
     LoadCarrierIdValidationRule       = new LoadCarrierIdValidationRule(context.OrderGroupsCreateRequest.LoadCarrierId, rule);
     NumberOfLoadsValidationRule       = new NumberOfLoadsValidationRule(context, rule);
     LoadingLocationIdValidationRule   = new LoadingLocationIdValidationRule(context.OrderGroupsCreateRequest.LoadingLocationId, rule);
     BaseLoadCarrierValidationRule     = new BaseLoadCarrierValidationRule(context.OrderGroupsCreateRequest, rule);
 }
 public ContextModel(MainRule.ContextModel context, [NotNull] NumberOfLoadsValidationRule rule) : base(
         context,
         rule)
 {
 }