public HomeController(IThingyRepository thingyRepository) { this._thingyRepository = thingyRepository; }
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)); }