コード例 #1
0
 public IndexModel(ICatalogApi catalogApi, IShopCartApi shopCartApi)
 {
     _catalogApi  = catalogApi ?? throw new ArgumentNullException(nameof(catalogApi));
     _shopCartApi = shopCartApi ?? throw new ArgumentNullException(nameof(shopCartApi));
 }
コード例 #2
0
 public CartModel(IShopCartApi shopCartApi)
 {
     _shopCartApi = shopCartApi ?? throw new ArgumentNullException(nameof(shopCartApi));
 }