Example #1
0
        static void TestGetProductData() // criar um banco de dados para armazenar os cadastros!
        {
            var newRegister = new ProductStock();

            var xBurger   = new RegisterNewProduct(1, "X-Burger", "Delicious burger", 18.50, ProductType.Food);
            var drinkBeer = new RegisterNewProduct(2, "Duff Beer", "Pure malt beer", 9.72, ProductType.Drink);
            var xEgg      = new RegisterNewProduct(3, "X-Egg", "Delicious Eggs with cheese", 15.50, ProductType.Food);

            newRegister.AddNewProduct(xBurger);
            newRegister.AddNewProduct(drinkBeer);
            newRegister.AddNewProduct(xEgg);

            newRegister.DisplayStock();
        }