Beispiel #1
0
 public ProductResponse(string id, string productionCode,
                        GuiInformation guiInformation,
                        PackagePrices price,
                        ExpectedDelivery expectedDelivery,
                        IEnumerable <ProductError> errors)
     : this(id, productionCode, guiInformation, price, expectedDelivery)
 {
     Errors = errors ?? Enumerable.Empty <ProductError>();
 }
Beispiel #2
0
 public ProductResponse(string id, string productionCode,
                        GuiInformation guiInformation,
                        PackagePrices price,
                        ExpectedDelivery expectedDelivery)
     : this(id, productionCode)
 {
     GuiInformation   = guiInformation;
     Price            = price;
     ExpectedDelivery = expectedDelivery;
 }
Beispiel #3
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="prices">Price information.</param>
 /// <param name="expectedDelivery">Expected delivery information.</param>
 public ShipmentEstimate(
     Product product,
     GuiInformation guiInformation,
     PackagePrices prices,
     ExpectedDelivery expectedDelivery)
 {
     ExpectedDelivery = expectedDelivery ?? throw new ArgumentNullException(nameof(expectedDelivery));
     Price            = prices ?? throw new ArgumentNullException(nameof(prices));
     GuiInformation   = guiInformation ?? throw new ArgumentNullException(nameof(guiInformation));
     Product          = product ?? throw new ArgumentNullException(nameof(product));
 }
Beispiel #4
0
 /// <summary>
 /// Initializes new instance of <see cref="PriceEstimate"/>.
 /// </summary>
 /// <param name="product">Product for which price estimated.</param>
 /// <param name="prices">Price information.</param>
 public PriceEstimate(Product product, PackagePrices prices)
 {
     Prices  = prices ?? throw new ArgumentNullException(nameof(prices));
     Product = product ?? throw new ArgumentNullException(nameof(product));
 }