Ejemplo n.º 1
0
        public void DebugListAllProducts()
        {
            MockProductRepository mockProductRepository = new MockProductRepository();
            List <Product>        products = mockProductRepository.GetAllProducts();

            ProductBrowser productBrowser = new ProductBrowser();

            productBrowser.BrowseListOfProducts(products);
        }
Ejemplo n.º 2
0
        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();
        }