Beispiel #1
0
 public HomeController(IThingyRepository thingyRepository)
 {
     this._thingyRepository = thingyRepository;
 }
Beispiel #2
0
 public BasketController(IBasketService basketService, IThingyRepository thingyRepository)
 {
     this._basketService    = basketService ?? throw new ArgumentNullException(nameof(basketService));
     this._thingyRepository = thingyRepository ?? throw new ArgumentNullException(nameof(thingyRepository));
 }
 public PspProcessor(IBasketService basketService, IOrderRepository orderRepository, IThingyRepository thingyRepository)
 {
     this._basketService    = basketService ?? throw new ArgumentNullException(nameof(basketService));
     this._orderRepository  = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     this._thingyRepository = thingyRepository ?? throw new ArgumentNullException(nameof(thingyRepository));
 }