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

            this.customersContext = customersContext;
        }
Beispiel #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;
 }
Beispiel #5
0
 public CustomersService(ICustomersContext context)
 {
     _context      = context;
     _customerRepo = new CustomerRepository(context);
     _addrRepo     = new AddressRepository(context);
 }
Beispiel #6
0
 public CustomerRepository(ICustomersContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public CustomersRepository(
     ICustomersContext customersContext)
 {
     _customersContext = customersContext;
 }
Beispiel #8
0
 public CustomerService(IMapper mapper, ICustomersContext customersContext)
 {
     _mapper           = mapper;
     _customersContext = customersContext;
 }
Beispiel #9
0
 public CustomerController(ICustomersContext context)
 {
     db = context;
 }