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; }
public AddressRuleManager(IAddressRuleProcessor ruleProcessor) { _ruleProcessor = ruleProcessor; }