예제 #1
0
        public CustomerInfoProviderFunctions(ICustomersContext customersContext)
        {
            if (customersContext == default(ICustomersContext))
            {
                throw new ArgumentNullException(nameof(customersContext));
            }

            this.customersContext = customersContext;
        }
예제 #2
0
        public CustomersRepository(ICustomersContext customersContext)
        {
            if (customersContext == default(ICustomersContext))
            {
                throw new ArgumentException(INVALID_CUSTOMERS_CONTEXT);
            }

            this.customersContext = customersContext;
        }
        public CustomerService(ICustomersContext customersContext)
        {
            if (customersContext == default(ICustomersContext))
            {
                throw new ArgumentException();
            }

            this.customersContext = customersContext;
        }
 public AddressRepository(ICustomersContext context)
 {
     _context = context;
 }
예제 #5
0
 public CustomersService(ICustomersContext context)
 {
     _context      = context;
     _customerRepo = new CustomerRepository(context);
     _addrRepo     = new AddressRepository(context);
 }
예제 #6
0
 public CustomerRepository(ICustomersContext context)
 {
     _context = context;
 }
예제 #7
0
 public CustomersRepository(
     ICustomersContext customersContext)
 {
     _customersContext = customersContext;
 }
예제 #8
0
 public CustomerService(IMapper mapper, ICustomersContext customersContext)
 {
     _mapper           = mapper;
     _customersContext = customersContext;
 }
예제 #9
0
 public CustomerController(ICustomersContext context)
 {
     db = context;
 }