Beispiel #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;
 }
Beispiel #2
0
 public ContactRuleManager(IContactsRuleProcessor ruleProcessor)
 {
     _ruleProcessor = ruleProcessor;
 }