public CustomersBusinessComponent(ICustomersRepository customersRepository, ICustomerNameValidation customerNameValidation, ICustomerValidation customerValidation) { if (customersRepository == default(ICustomersRepository)) { throw new ArgumentException(INVALID_CUSTOMERS_REPOSITORY, "customersRepository"); } this.customersRepository = customersRepository; if (customerNameValidation == default(ICustomerNameValidation)) { throw new ArgumentException(INVALID_ARGUMENTS, "customerNameValidation"); } this.customerNameValidation = customerNameValidation; if (customerValidation == default(ICustomerValidation)) { throw new ArgumentException(INVALID_ARGUMENTS, "customerValidation"); } this.customerValidation = customerValidation; }
public CustomerService( IRepository <Customer> customerRepository, ICustomerValidation customerValidation, IMapper mapper) { _customerRepository = customerRepository; _customerValidation = customerValidation; _mapper = mapper; }
public CustomerManager(Messages messages, ICustomerValidation customerValidation) { _messages = messages; _customerValidation = customerValidation; }
public CustomerService(ICustomerValidation customerValidation, ICustomerStorage customerStorage, INotificationService notificationService) { _customerValidation = customerValidation; _customerStorage = customerStorage; _notificationService = notificationService; }
public CustomerController(ICustomerService customerService, ICustomerValidation customerValidation) { this.customerService = customerService; this.customerValidation = customerValidation; }
public CustomerManagement(ICrmDbContext db, ICustomerValidation customerValidation) { _db = db; _customerValidation = customerValidation; }
public CusomerManager(ICustomerDAL customerDAL, ICustomerValidation customerValidation ) { this.customerDAL = customerDAL; this.customerValidation = customerValidation; }