Ejemplo n.º 1
0
        public void Iniciar()
        {
            //Obtengo el DAO
            this.daoPrueba = FabricaDAOSqlServer.ObtenerdaoCarrito();

            //La persona
            this.persona = new Persona();
            this.persona.Id = 11;
            this.persona2 = new Persona();
            this.persona2.Id = 12;
            this.persona3 = new Persona();
            this.persona3.Id = 13;
            this.persona4 = new Persona();
            this.persona4.Id = 14;
            this.persona5 = new Persona();
            this.persona5.Id = 15;
            this.persona6 = new Persona();
            this.persona6.Id = 16;

            //Dos implementos distintos
            this.implemento = new Implemento();
            this.implemento.Id = 1;
            this.implemento.Precio_Implemento = 4500;
            this.implemento2 = new Implemento();
            this.implemento2.Id = 2;
            this.implemento2.Precio_Implemento = 3000;

            //Eventos
            this.listaEventos = FabricaComandos.CrearComandoConsultarTodosEventos().Ejecutar();

            //Dos matriculas distintas
            this.matricula = new Matricula();
            this.matricula.Id = 1;
            this.matricula.Costo = 5000;
            this.matricula2 = new Matricula();
            this.matricula2.Id = 2;
            this.matricula2.Costo = 4500;
        }
Ejemplo n.º 2
0
 public void Limpiar()
 {
     this.daoPrueba = null;
     this.persona = null;
     this.persona2 = null;
     this.persona3 = null;
     this.persona4 = null;
     this.persona5 = null;
     this.persona6 = null;
     this.implemento = null;
     this.implemento2 = null;
     this.listaEventos = null;
     this.matricula = null;
     this.matricula2 = null;
     this.ImplementosCarrito = null;
     this.EventosCarrito = null;
     this.MatriculasCarrito = null;
     this.evento = null;
 }