Example #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;
 }
Example #2
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>();
 }
Example #3
0
 public ProductResponse(string id, string productionCode,
                        GuiInformation guiInformation,
                        PackagePrices price,
                        ExpectedDelivery expectedDelivery)
     : this(id, productionCode)
 {
     GuiInformation   = guiInformation;
     Price            = price;
     ExpectedDelivery = expectedDelivery;
 }
Example #4
0
 public ProductResponse(
     string productId,
     string productCodeInProductionSystem,
     GuiInformation guiInformation,
     PackagePrice price,
     PackagePrice netPrice,
     ExpectedDelivery expectedDelivery) :
     this(productId, productCodeInProductionSystem, guiInformation, price, expectedDelivery)
 {
     NetPrice = netPrice;
 }
Example #5
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));
 }
Example #6
0
 /// <summary>
 /// Initializes new instance of <see cref="DeliveryEstimate"/>
 /// </summary>
 /// <param name="product">Product for which delivery estimated.</param>
 /// <param name="expectedDelivery">Expected delivery information.</param>
 public DeliveryEstimate(Product product, ExpectedDelivery expectedDelivery)
 {
     if (product == null)
     {
         throw new ArgumentNullException("product");
     }
     if (expectedDelivery == null)
     {
         throw new ArgumentNullException("expectedDelivery");
     }
     ExpectedDelivery = expectedDelivery;
     Product          = product;
 }
Example #7
0
 public ProductResponse(
     string productId,
     string productCodeInProductionSystem,
     GuiInformation guiInformation,
     PackagePrice price,
     ExpectedDelivery expectedDelivery)
 {
     ExpectedDelivery = expectedDelivery;
     Price            = price;
     GuiInformation   = guiInformation;
     ProductCodeInProductionSystem = productCodeInProductionSystem;
     ProductId = productId;
 }
Example #8
0
 /// <summary>
 /// Initializes new instance of <see cref="DeliveryEstimate"/>
 /// </summary>
 /// <param name="product">Product for which delivery estimated.</param>
 /// <param name="expectedDelivery">Expected delivery information.</param>
 public DeliveryEstimate(Product product, ExpectedDelivery expectedDelivery)
 {
     ExpectedDelivery = expectedDelivery ?? throw new ArgumentNullException(nameof(expectedDelivery));
     Product          = product ?? throw new ArgumentNullException(nameof(product));
 }