Пример #1
0
        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();
        }
Пример #2
0
 public void MakeOrder(PizzaRestFacade facade)
 {
     facade.Start();
     facade.End();
 }