Esempio n. 1
0
 public OrderService(CustomerService customerService, ICustomerRepository customerRepository,
                     IOrderRepository orderRepository, ICustomerOrderGroupRepository customerOrderGroupRepository,
                     IAuthenticationFacade authenticationContextFacade)
 {
     _customerService              = customerService;
     _customerRepository           = customerRepository;
     _orderRepository              = orderRepository;
     _customerOrderGroupRepository = customerOrderGroupRepository;
     _authenticationContextFacade  = authenticationContextFacade;
 }
Esempio n. 2
0
 public DietaryApplicationTests(TestDb testDb)
 {
     _dbContext                    = testDb.DbContext;
     _customerRepository           = new CustomerRepository(_dbContext);
     _customerOrderGroupRepository = new CustomerOrderGroupRepository(_dbContext);
     _orderRepository              = new OrderRepository(_dbContext);
     _authenticationFacade         = new AuthenticationFacade();
     _customerService              = new CustomerService(_customerRepository);
     _orderService                 = new OrderService(_customerService, _customerRepository, _orderRepository,
                                                      _customerOrderGroupRepository, _authenticationFacade);
 }