Esempio n. 1
0
        static void Main(string[] args)
        {
            CourierOrder courierOrder = new CourierOrder();
            ParcelPack   parcelPack   = new ParcelPack();
            ShippingPay  shippingPay  = new ShippingPay();

            Facade facade = new Facade(courierOrder, parcelPack, shippingPay);

            Client.ClientCode(facade);
        }
Esempio n. 2
0
 public Facade(CourierOrder courierOrder, ParcelPack parcelPack, ShippingPay shippingPay)
 {
     this._courierOrder = courierOrder;
     this._parcelPack   = parcelPack;
     this._shippingPay  = shippingPay;
 }