Esempio n. 1
0
        /*Eliminar:
         * private const string co1 = "CO1";
         * private const string co2 = "CO2";
         * private const string ll1 = "LL1";
         * private const string ll2 = "LL2";
         * private const string na1 = "NA1";
         * private const string na2 = "NA2";
         * private const string cocaCola = "Cola";
         * private const string sprite = "Lima Limón";
         * private const string fanta = "Naranja";
         * private const string regular = "Regular";
         * private const string zero = "Light";*/



        public Lata(string codigo, double precio, double volumen)
        {
            Variedad var = LataHelper.GetVariedad(codigo);

            this.Codigo  = codigo;
            this.Nombre  = var.Nombre;
            this.Sabor   = var.Sabor;
            this.Precio  = precio;
            this.Volumen = volumen;
        }
Esempio n. 2
0
        public Expendedora(string proveedor, int capacidad, double dinero)
        {
            this.Latas        = new List <Lata>();
            this.Ventas       = new List <Venta>();
            this.Proveedor    = proveedor;
            this.CapacidadMax = capacidad;
            this.Dinero       = dinero;
            this.SaldoInicial = dinero;
            this.Encendida    = false;
            LataHelper.AgregarList();

            //Para agregar latasHC para test
            //Latas.AddRange(XQA.CargarLatasHardcodeadas());
        }