public void DebugListAllProducts() { MockProductRepository mockProductRepository = new MockProductRepository(); List <Product> products = mockProductRepository.GetAllProducts(); ProductBrowser productBrowser = new ProductBrowser(); productBrowser.BrowseListOfProducts(products); }
public void ListAllProducts() { Clear(); var mockProductRepository = new MockProductRepository(); var products = mockProductRepository.GetAllProducts(); Echo("Liste des produits : \n"); foreach (Product product in products) { Console.WriteLine(product.Name + "\n"); } AskKeyPress("Appuyez sur une touche pour revenir au menu.\n"); DisplayMainMenu(); }