public OrderService(IRepository <Customer> customerRepository,
                     IRepository <Item> itemRepository,
                     IRepository <Order> orderRepository,
                     OrderValidator orderValidator)
 {
     _customerRepository = customerRepository;
     _itemRepository     = itemRepository;
     _orderRepository    = orderRepository;
     _orderValidator     = orderValidator;
 }
Exemple #2
0
 public OrderService(ICustomerRepository customerRepository,
                     IItemRepository itemRepository,
                     IOrderRepository orderRepository,
                     OrderValidator orderValidator)
 {
     _customerRepository = customerRepository;
     _itemRepository     = itemRepository;
     _orderRepository    = orderRepository;
     _orderValidator     = orderValidator;
 }