Ejemplo n.º 1
0
        IEnumerable <Map> MapSelectionsWithTimeOfDayMenu(Menu menu, OrderTicket OrderTicket)
        {
            var menuItems = menu.GetMenuItems(OrderTicket.TimeOfDay);

            ThrowIfTimeOfDayIsMissingMenu(menuItems);
            return(from selection in OrderTicket.Dishes
                   join menuItem in menuItems on selection equals
                   menuItem.DishType into map
                   from item in map.DefaultIfEmpty()
                   select new Map(selection, item));
        }
Ejemplo n.º 2
0
 public Order ProcessOrder(OrderTicket Olist)
 {
     return(_processOrder(_menu, Olist));
 }