Beispiel #1
0
        /// <summary>
        /// Constructor which accepts business dependencies
        /// </summary>
        /// <param name="customersBusinessComponent">Customers Busines Component Dependency</param>
        public CustomersApiController(ICustomersBusinessComponent customersBusinessComponent)
        {
            if (customersBusinessComponent == default(ICustomersBusinessComponent))
            {
                throw new ArgumentException(INVALID_CUSTOMERS_BUSINESS_COMPONENT);
            }

            this.customersBusinessComponent = customersBusinessComponent;
        }
Beispiel #2
0
 public CustomerService(ICustomersBusinessComponent customersBusinessComponent)
 {
     this.customersBusinessComponent = customersBusinessComponent;
 }
 public CustomersController(ICustomersBusinessComponent customersBusinessComponent)
 {
     this.customersBusinessComponent = customersBusinessComponent;
 }