public static void TestGetMenuItemListCustomer() { MenuItemDaoCollection menuItemDao = new MenuItemDaoCollection(); Console.WriteLine("Customer Menu Item List \n Id Name Price Active Date of Launch Category Free Delivery Action\n"); menuItemDao.GetMenuItemListCustomer().ForEach(item => Console.WriteLine($"{item.Id} {item.Name} {item.Price} {(item.Active ? "Yes" : "No")} {item.DateOfLaunch} {item.Category} {(item.FreeDelivery ? "Yes" : "No")}")); Console.WriteLine(); }
public void TestGetMenuItemListCustomer() { var menuItemList = menuItemDao.GetMenuItemListCustomer(); foreach (var item in menuItemList) { Console.WriteLine(item); } }