コード例 #1
0
 public ProcessedOrder(IDeliveryService Service, List <IProduct> Products, IShippingLocation Location)
     : base(Service, Products, Location)
 {
     this.DeliveryService  = Service;
     this.Products         = Products;
     this.ShippingLocation = Location;
 }
コード例 #2
0
 /// <summary>
 /// Used to caclulate the cost of shipping a list of products to a location using a delivery service
 /// </summary>
 /// <param name="Service"></param>
 /// <param name="Products"></param>
 /// <param name="Location"></param>
 public DefaultShippingService(IDeliveryService Service, List <IProduct> Products, IShippingLocation Location)
 {
     DeliveryService  = Service;
     this.Products    = Products;
     ShippingLocation = Location;
     this.ShippingLocation.StartZipCode       = 60605;
     this.ShippingLocation.DestinationZipCode = 60805;
 }
コード例 #3
0
 /// <summary>
 /// Used to caclulate the cost of shipping a list of products to a location using a delivery service
 /// </summary>
 /// <param name="Service"></param>
 /// <param name="Products"></param>
 /// <param name="Location"></param>
 public DefaultShippingService(IDeliveryService Service, List <IProduct> Products, IShippingLocation Location)
 {
     DeliveryService  = Service;
     ShippingLocation = Location;
     this.Products    = Products;
 }
コード例 #4
0
 public CarrierPigeonService(IDeliveryService Service, List <IProduct> Products, IShippingLocation Location) : base(Service, Products, Location)
 {
 }
コード例 #5
0
 public EuropeanSwallowFakeShippingService(IDeliveryService Service, List <IProduct> Products, IShippingLocation Location) : base(Service, Products, Location)
 {
     this.Products = Products;
     this.ShippingLocation.StartZipCode = 6450;
 }