public void Iniciar()
        {
            //Las Personas
            this.persona = FabricaEntidades.ObtenerPersona();
            this.persona.Id = 11;
            this.persona2 = FabricaEntidades.ObtenerPersona();
            this.persona2.Id = 12;
            this.persona3 = FabricaEntidades.ObtenerPersona();
            this.persona3.Id = 13;
            this.persona4 = FabricaEntidades.ObtenerPersona();
            this.persona4.Id = 14;

            //Implemento
            this.implemento = (Implemento)FabricaEntidades.ObtenerImplemento();
            this.implemento.Id = 1;
            this.implemento.Precio_Implemento = 4500;

            //Eventos
            this.evento = (DominioSKD.Entidades.Modulo9.Evento)FabricaEntidades.ObtenerEvento();
            this.evento.Id = 1;
            this.evento.Costo = 0;

            //Matricula
            this.matricula = (Matricula)FabricaEntidades.ObtenerMatricula();
            this.matricula.Id = 37;
            this.matricula.Costo = 4250;

            //Iniciamos los atributos para la prueba de vacio
            this.PruebaComandoVacio = FabricaComandos.CrearComandoVerCarrito();
            this.PruebaComandoVacio2 = FabricaComandos.CrearComandoVerCarrito(this.persona);
            this.pruebaComandoVacio3 = (ComandoVerCarrito)FabricaComandos.CrearComandoVerCarrito();
            this.pruebaComandoVacio4 = (ComandoVerCarrito)FabricaComandos.CrearComandoVerCarrito(this.persona);

            //Carrito Cuando hay solo Implementos
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona, this.implemento, 1, 5);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerSoloImplemento = FabricaComandos.CrearComandoVerCarrito(this.persona);

            //Carrito Cuando hay solo Eventos
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem
                (this.persona2, this.evento, 2, 6);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerSoloEvento = FabricaComandos.CrearComandoVerCarrito(this.persona2);

            //Carrito Cuando hay solo Matriculas
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona3, this.matricula, 3, 1);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerSoloMatricula = FabricaComandos.CrearComandoVerCarrito(this.persona3);

            //Carrito Cuando hay Implementos, Eventos y Matriculas
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona4, this.implemento, 1, 5);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem
                (this.persona4, this.evento, 2, 6);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona4, this.matricula, 3, 1);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerTodo = FabricaComandos.CrearComandoVerCarrito(this.persona4);
        }
        public void Iniciar()
        {
            //Las Personas
            this.persona = FabricaEntidades.ObtenerPersona();
            this.persona.Id = 20;
            this.persona2 = FabricaEntidades.ObtenerPersona();
            this.persona2.Id = 21;
            this.persona3 = FabricaEntidades.ObtenerPersona();
            this.persona3.Id = 22;
            this.persona4 = FabricaEntidades.ObtenerPersona();
            this.persona4.Id = 23;

            //Implemento
            this.implemento =  new Implemento();
            this.implemento.Id = 1;
            this.implemento.Precio_Implemento = 4500;

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

            //Matricula
            this.matricula = new Matricula();
            this.matricula.Id = 1;
            this.matricula.Costo = 5000;

            //Iniciamos los atributos para la prueba de vacio
            this.PruebaComandoVacio = FabricaComandos.CrearComandoVerCarrito();
            this.PruebaComandoVacio2 = FabricaComandos.CrearComandoVerCarrito(this.persona);
            this.pruebaComandoVacio3 = (ComandoVerCarrito)FabricaComandos.CrearComandoVerCarrito();
            this.pruebaComandoVacio4 = (ComandoVerCarrito)FabricaComandos.CrearComandoVerCarrito(this.persona);

            //Carrito Cuando hay solo Implementos
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona, this.implemento, 1, 5);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerSoloImplemento = FabricaComandos.CrearComandoVerCarrito(this.persona);

            //Carrito Cuando hay solo Eventos
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona2, this.listaEventos[0], 2, 6);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerSoloEvento = FabricaComandos.CrearComandoVerCarrito(this.persona2);

            //Carrito Cuando hay solo Matriculas
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona3, this.matricula, 3, 1);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerSoloMatricula = FabricaComandos.CrearComandoVerCarrito(this.persona3);

            //Carrito Cuando hay Implementos, Eventos y Matriculas
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona4, this.implemento, 1, 5);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona4, this.listaEventos[0], 2, 6);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona4, this.matricula, 3, 1);
            this.ComandoAgregarItem.Ejecutar();
            this.PruebaVerTodo = FabricaComandos.CrearComandoVerCarrito(this.persona4);
        }
        public void Limpiar()
        {
            //Elimino de la primera prueba
            this.ComandoEliminar = FabricaComandos.CrearComandoeliminarItem(1, this.implemento, this.persona);
            this.ComandoEliminar.Ejecutar();

            //Elimino de la segunda prueba
            this.ComandoEliminar = FabricaComandos.CrearComandoeliminarItem
                (3, this.evento, this.persona2);
            this.ComandoEliminar.Ejecutar();

            //Elimino de la tercera prueba
            this.ComandoEliminar = FabricaComandos.CrearComandoeliminarItem(2, this.matricula, this.persona3);
            this.ComandoEliminar.Ejecutar();

            //Elimino de la cuarta prueba
            this.ComandoEliminar = FabricaComandos.CrearComandoeliminarItem(1, this.implemento, this.persona4);
            this.ComandoEliminar.Ejecutar();
            this.ComandoEliminar = FabricaComandos.CrearComandoeliminarItem
                (3, this.evento, this.persona4);
            this.ComandoEliminar.Ejecutar();
            this.ComandoEliminar = FabricaComandos.CrearComandoeliminarItem(2, this.matricula, this.persona4);
            this.ComandoEliminar.Ejecutar();

            //Dejo en null
            this.ComandoEliminar = null;
            this.PruebaComandoVacio = null;
            this.PruebaComandoVacio2 = null;
            this.PruebaVerSoloImplemento = null;
            this.PruebaVerSoloEvento = null;
            this.PruebaVerSoloMatricula = null;
            this.PruebaVerTodo = null;
            this.pruebaComandoVacio3 = null;
            this.pruebaComandoVacio4 = null;
            this.ComandoAgregarItem = null;
            this.persona = null;
            this.persona2 = null;
            this.persona3 = null;
            this.persona4 = null;
            this.implemento = null;
            this.matricula = null;
            this.Carrito = null;
            this.evento = null;
        }
 public void Limpiar()
 {
     this.PruebaComandoVacio = null;
     this.PruebaComandoVacio2 = null;
     this.PruebaVerSoloImplemento = null;
     this.PruebaVerSoloEvento = null;
     this.PruebaVerSoloMatricula = null;
     this.PruebaVerTodo = null;
     this.pruebaComandoVacio3 = null;
     this.pruebaComandoVacio4 = null;
     this.ComandoAgregarItem = null;
     this.persona = null;
     this.persona2 = null;
     this.persona3 = null;
     this.persona4 = null;
     this.implemento = null;
     this.listaEventos = null;
     this.eventos = null;
     this.matricula = null;
     this.Carrito = null;
     this.evento = null;
 }