コード例 #1
0
        private void orderCombo()
        {
            SaleOrder comboOrder = new SaleOrder(3, "Paquete 2x1 en PC");

            comboOrder.AddProduct(Pc2x1);
            comboOrder.PrintOrder();
        }
コード例 #2
0
        private void orderHomePC()
        {
            SaleOrder homeOrder = new SaleOrder(2, "Marcos Guerra");

            homeOrder.AddProduct(HomePC);
            homeOrder.PrintOrder();
        }
コード例 #3
0
        private void orderGammerPC()
        {
            SaleOrder gammerOrder = new SaleOrder(1, "Juan Perez");

            gammerOrder.AddProduct(GammerPC);
            gammerOrder.PrintOrder();
        }
コード例 #4
0
        private void orderSimpleProducts()
        {
            SaleOrder simpleProductOrder = new SaleOrder(random.Next(), "Rene Blancarte");

            simpleProductOrder.AddProduct(Ram4gb);
            simpleProductOrder.AddProduct(Disk1tb);
            simpleProductOrder.AddProduct(SimpleMouse);
            simpleProductOrder.PrintOrder();
        }
コード例 #5
0
        private void orderBig()
        {
            SaleOrder customOrder = new SaleOrder(4, "Oscar Blancarte");

            customOrder.AddProduct(HomePC);
            customOrder.AddProduct(Ram8gb);
            customOrder.AddProduct(Ram4gb);
            customOrder.AddProduct(Monitor30inch);
            customOrder.AddProduct(GammerMouse);
            customOrder.PrintOrder();
        }