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); }
public Facade(CourierOrder courierOrder, ParcelPack parcelPack, ShippingPay shippingPay) { this._courierOrder = courierOrder; this._parcelPack = parcelPack; this._shippingPay = shippingPay; }