public CustomerService(ICustomerRepository repository, IEmailBuilder emailBuilder, IIdFactory idFactory, IMailingAddressFactory mailingAddressFactory, INameBuilder nameBuilder, ICustomerStatusFactory statusFactory, IWorkstationSettings workstationSettings) { _repositry = repository; _emailBuilder = emailBuilder; _idFactory = idFactory; _mailingAddressFactory = mailingAddressFactory; _nameBuilder = nameBuilder; _statusFactory = statusFactory; _workstationSettings = workstationSettings; // установка обработчика события _repositry.Notify += (o, e) => _mailingAddressFactory.CreatenewMessage(e.CustomerName); }
public CustomerService(IMailingAddressFactory factory, ICustomerRepository repo) { this.repo = repo; this.factory = factory; }
public CustomerService(ICustomerRepository customerRepository, IMailingAddressFactory mailingAddressFactory) { _customerRepository = customerRepository; _mailingAddressFactory = mailingAddressFactory; }
public CustomerService_4(IMailingAddressFactory mailingAddressFactory, ICustomerRepository customerRepository) { _mailingAddressFactory = mailingAddressFactory; _customerRepository = customerRepository; }