Example #1
0
 public CheckOutModel(IBasketApi basketApi, IOrderingApi orderApi, PromoCode_gRPC promoService)
 {
     _basketApi    = basketApi ?? throw new ArgumentNullException(nameof(basketApi));
     _orderApi     = orderApi ?? throw new ArgumentNullException(nameof(orderApi));
     _promoService = promoService ?? throw new ArgumentNullException(nameof(promoService));
 }
 public OrderModel(IOrderingApi orderApi)
 {
     _orderApi = orderApi ?? throw new ArgumentNullException(nameof(orderApi));
 }