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; }
/// <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; }
public OrderlineService(IOrderlineRepository orderlineRepository) { _orderlineRepository = orderlineRepository; }
public OrderController(IProductRepository productRepository, IOrderlineRepository orderlineRepository) { _productRepository = productRepository; _orderlineRepository = orderlineRepository; }