コード例 #1
0
 /// <summary>
 /// Initializes new instance of <see cref="ShipmentEstimate"/>.
 /// </summary>
 /// <param name="product">Product for which shipment estimated.</param>
 /// <param name="guiInformation">GUI information.</param>
 /// <param name="packagePrice">Price information.</param>
 /// <param name="expectedDelivery">Expected delivery information.</param>
 public ShipmentEstimate(
     Product product,
     GuiInformation guiInformation,
     PackagePrice packagePrice,
     ExpectedDelivery expectedDelivery)
 {
     if (product == null)
     {
         throw new ArgumentNullException("product");
     }
     if (guiInformation == null)
     {
         throw new ArgumentNullException("guiInformation");
     }
     if (packagePrice == null)
     {
         throw new ArgumentNullException("packagePrice");
     }
     if (expectedDelivery == null)
     {
         throw new ArgumentNullException("expectedDelivery");
     }
     ExpectedDelivery = expectedDelivery;
     PackagePrice     = packagePrice;
     GuiInformation   = guiInformation;
     Product          = product;
 }
コード例 #2
0
ファイル: ProductResponse.cs プロジェクト: lulzzz/Geta.Bring
 public ProductResponse(
     string productId,
     string productCodeInProductionSystem,
     GuiInformation guiInformation,
     PackagePrice price,
     PackagePrice netPrice,
     ExpectedDelivery expectedDelivery) :
     this(productId, productCodeInProductionSystem, guiInformation, price, expectedDelivery)
 {
     NetPrice = netPrice;
 }
コード例 #3
0
ファイル: PriceEstimate.cs プロジェクト: lulzzz/Geta.Bring
 /// <summary>
 /// Initializes new instance of <see cref="PriceEstimate"/>.
 /// </summary>
 /// <param name="product">Product for which price estimated.</param>
 /// <param name="packagePrice">Price information.</param>
 public PriceEstimate(Product product, PackagePrice packagePrice)
 {
     if (product == null)
     {
         throw new ArgumentNullException("product");
     }
     if (packagePrice == null)
     {
         throw new ArgumentNullException("packagePrice");
     }
     PackagePrice = packagePrice;
     Product      = product;
 }
コード例 #4
0
ファイル: ProductResponse.cs プロジェクト: lulzzz/Geta.Bring
 public ProductResponse(
     string productId,
     string productCodeInProductionSystem,
     GuiInformation guiInformation,
     PackagePrice price,
     ExpectedDelivery expectedDelivery)
 {
     ExpectedDelivery = expectedDelivery;
     Price            = price;
     GuiInformation   = guiInformation;
     ProductCodeInProductionSystem = productCodeInProductionSystem;
     ProductId = productId;
 }
コード例 #5
0
ファイル: PackagePrices.cs プロジェクト: follesoe/Geta.Bring
 public PackagePrices(PackagePrice listPrice)
 {
     ListPrice = listPrice ?? throw new ArgumentNullException(nameof(listPrice));
 }
コード例 #6
0
ファイル: PackagePrices.cs プロジェクト: follesoe/Geta.Bring
 public PackagePrices(PackagePrice listPrice, PackagePrice netPrice) : this(listPrice)
 {
     NetPrice = netPrice;
 }