示例#1
0
 public CustomerRuleManager(IAddressRuleProcessor addressRuleProcessor,
                            IContactsRuleProcessor contactsRuleProcessor,
                            ICustomerRulesProcessor customerRulesProcessor, IMapper mapper)
 {
     _addressRuleProcessor   = addressRuleProcessor ?? throw new ArgumentException(string.Format(BusinessRuleResource.Error_InstanceObject, nameof(addressRuleProcessor)));
     _contactsRuleProcessor  = contactsRuleProcessor ?? throw new ArgumentException(string.Format(BusinessRuleResource.Error_InstanceObject, nameof(contactsRuleProcessor)));
     _customerRulesProcessor = customerRulesProcessor ?? throw new ArgumentException(string.Format(BusinessRuleResource.Error_InstanceObject, nameof(customerRulesProcessor)));
     _mapper = mapper;
 }
示例#2
0
 public AddressRuleManager(IAddressRuleProcessor ruleProcessor)
 {
     _ruleProcessor = ruleProcessor;
 }