static void Main(string[] args) { CallCenter callCenter = new CallCenter(); Worker worker = new Worker(); Courier courier = new Courier(); PizzaRestFacade order = new PizzaRestFacade(callCenter, worker, courier); Client client = new Client(); Console.WriteLine("Клиент делает заказ"); Console.WriteLine(new string ('-', 80)); client.MakeOrder(order); Console.Read(); }
public PizzaRestFacade(CallCenter callCen, Worker work, Courier cour) { this.callCenter = callCen; this.worker = work; this.courier = cour; }