コード例 #1
0
        public void ServeOrder(IHuman client)
        {
            var clientOrder = this.orders[client];

            Console.WriteLine(new string('=', GlobalConstants.DelimitersCount));
            Console.WriteLine($"Waiter({this.Name}): - \"Serving order to client ({client.Name})...\"");
            Console.WriteLine("Order details:");
            Console.WriteLine(clientOrder);

            client.Eat(clientOrder.Foods);
            client.Drink(clientOrder.Beverages);
        }
コード例 #2
0
        public void ServeOrder(IHuman client)
        {
            var clientOrder = this.orders[client];

            Console.WriteLine(new string('=', GlobalConstants.DelimitersCount));
            Console.WriteLine($"Waiter({this.Name}): - \"Serving order to client ({client.Name})...\"");
            Console.WriteLine("Order details:");
            Console.WriteLine(clientOrder);

            client.Eat(clientOrder.Foods);
            client.Drink(clientOrder.Beverages);
        }