示例#1
0
 public CartController(IPizzaRepository repo, IOrderlineRepository orderlineRepo, IOrderRepository orderRepo, IDeliveryRepository deliveryRepo, IVoucherRepository voucherRepo, IPizzaToppingOrderRepository pizzaToppingOrderRepo)
 {
     repository                  = repo;
     orderlineRepository         = orderlineRepo;
     orderRepository             = orderRepo;
     deliveryRepository          = deliveryRepo;
     voucherRepository           = voucherRepo;
     pizzaToppingOrderRepository = pizzaToppingOrderRepo;
 }
 public CartController(IPizzaRepository repo, IOrderlineRepository orderlineRepo, IOrderRepository orderRepo, IDeliveryRepository deliveryRepo, IVoucherRepository voucherRepo, IPizzaToppingOrderRepository pizzaToppingOrderRepo)
 {
     repository = repo;
     orderlineRepository = orderlineRepo;
     orderRepository = orderRepo;
     deliveryRepository = deliveryRepo;
     voucherRepository = voucherRepo;
     pizzaToppingOrderRepository = pizzaToppingOrderRepo;
 }
示例#3
0
 /// <summary>
 /// Maakt een nieuwe instantie van de OrderService klasse
 /// </summary>
 /// <param name="orderRepository">Geïnjecteerde repository om data uit de databank te lezen en schrijven.</param>
 public OrderService(
     IOrderRepository orderRepository,
     ILeidingRepository leidingRepository,
     IDrankRepository drankRepository,
     IOrderlineRepository orderlineRepository,
     IAccountRepository accountRepository,
     IAccountService accountService)
 {
     _orderRepository     = orderRepository;
     _leidingRepository   = leidingRepository;
     _drankRepository     = drankRepository;
     _orderlineRepository = orderlineRepository;
     _accountRepository   = accountRepository;
     _accountService      = accountService;
 }
示例#4
0
 public OrderlineService(IOrderlineRepository orderlineRepository)
 {
     _orderlineRepository = orderlineRepository;
 }
示例#5
0
 public OrderController(IProductRepository productRepository, IOrderlineRepository orderlineRepository)
 {
     _productRepository   = productRepository;
     _orderlineRepository = orderlineRepository;
 }