public void Iniciar()
        {
            //Dos implementos distintos
            this.implemento = (Implemento)FabricaEntidades.ObtenerImplemento();
            this.implemento.Id = 1;
            this.implemento.Precio_Implemento = 4500;

            //La persona
            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;
            this.persona5 = FabricaEntidades.ObtenerPersona();
            this.persona5.Id = 15;
            this.persona6 = FabricaEntidades.ObtenerPersona();
            this.persona6.Id = 16;

            //Iniciamos los atributos para la prueba de vacio
            this.datoPago = new List<String>();
            this.datoPago.Add("123456789");
            this.pago = FabricaEntidades.ObtenerPago(111,"Deposito", this.datoPago);
            this.PruebaComandoVacio = FabricaComandos.CrearComandoRegistrarPago();
            this.PruebaComandoVacio2 = FabricaComandos.CrearComandoRegistrarPago(this.persona, this.pago);
            this.pruebaComandoVacio3 = (ComandoRegistrarPago)FabricaComandos.CrearComandoRegistrarPago();
            this.pruebaComandoVacio4 = (ComandoRegistrarPago)FabricaComandos.CrearComandoRegistrarPago
                (this.persona, this.pago);

            //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 = 1;
            this.matricula.Costo = 5000;

            //Insertamos la cantidad de implementos que no pueden ser satisfechos por el stock
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona5, this.implemento, 1, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();

            //Insertamos una cantidad de inventario que no puede ser satisfecho de igual forma para esta persona
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona6, this.implemento, 1, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();

            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem
                (this.persona6, this.evento, 2, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona6, this.matricula, 3, 10);
            this.ComandoAgregarItem.Ejecutar();
        }
        public void Iniciar()
        {
            //Dos implementos distintos
            this.implemento = new Implemento();
            this.implemento.Id = 1;
            this.implemento.Precio_Implemento = 4500;

            //Iniciamos los atributos para la prueba de vacio
            this.persona = FabricaEntidades.ObtenerPersona();
            this.PruebaComandoVacio = FabricaComandos.CrearComandoRegistrarPago();
            this.PruebaComandoVacio2 = FabricaComandos.CrearComandoRegistrarPago(this.persona,"prueba");
            this.pruebaComandoVacio3 = (ComandoRegistrarPago)FabricaComandos.CrearComandoRegistrarPago();
            this.pruebaComandoVacio4 = (ComandoRegistrarPago)FabricaComandos.CrearComandoRegistrarPago
                (this.persona, "prueba");

            //Iniciamos los atributos para la prueba de RegistrarPago

            //La persona
            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;
            this.persona5 = FabricaEntidades.ObtenerPersona();
            this.persona5.Id = 15;
            this.persona6 = FabricaEntidades.ObtenerPersona();
            this.persona6.Id = 16;

            //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;

            //Agregamos datos ficticios en carritos
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona, this.implemento, 1, 20);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem
                (this.persona2, this.listaEventos[0], 2, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona3, this.matricula, 3, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona4, this.implemento, 1, 20);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem
                (this.persona4, this.listaEventos[0], 2, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona4, this.matricula, 3, 10);
            this.ComandoAgregarItem.Ejecutar();

            this.ComandoRegistrarPago = FabricaComandos.CrearComandoRegistrarPago(this.persona,"Tarjeta");
            this.ComandoRegistrarPago2 = FabricaComandos.CrearComandoRegistrarPago(this.persona2,"Deposito");
            this.ComandoRegistrarPago3 = FabricaComandos.CrearComandoRegistrarPago(this.persona3, "Transferencia");
            this.ComandoRegistrarPago4 = FabricaComandos.CrearComandoRegistrarPago(this.persona4, "Tarjeta");

            //Insertamos la cantidad de implementos que no pueden ser satisfechos por el stock
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona5, this.implemento, 1, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();

            //Insertamos una cantidad de inventario que no puede ser satisfecho de igualforma par aesta persona
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona6, this.implemento, 1, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem.Ejecutar();

            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem
                (this.persona6, this.listaEventos[0], 2, 10);
            this.ComandoAgregarItem.Ejecutar();
            this.ComandoAgregarItem = FabricaComandos.CrearComandoAgregarItem(this.persona6, this.matricula, 3, 10);
            this.ComandoAgregarItem.Ejecutar();

            this.ComandoRegistrarPago5 = FabricaComandos.CrearComandoRegistrarPago(this.persona5, "Tarjeta");
            this.ComandoRegistrarPago6 = FabricaComandos.CrearComandoRegistrarPago(this.persona6, "Deposito");
        }
        public void Limpiar()
        {
            //Elimino de la persona5
            this.ComandoEliminar = FabricaComandos.CrearComandoeliminarItem(1, this.implemento, this.persona5);
            this.ComandoEliminar.Ejecutar();

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

            //Limpio los demas valores
            this.ComandoEliminar = null;
            this.persona = null;
            this.persona2 = null;
            this.persona3 = null;
            this.persona4 = null;
            this.persona5 = null;
            this.persona6 = null;
            this.matricula = null;
            this.implemento = null;
            this.evento = null;
            this.PruebaComandoVacio = null;
            this.PruebaComandoVacio2 = null;
            this.pruebaComandoVacio3 = null;
            this.pruebaComandoVacio4 = null;
            this.ComandoAgregarItem = null;
            this.ComandoRegistrarPago = null;
            this.pago = null;
            this.datoPago = null;
        }
 public void Limpiar()
 {
     this.persona = null;
     this.persona2 = null;
     this.persona3 = null;
     this.persona4 = null;
     this.persona5 = null;
     this.persona6 = null;
     this.matricula = null;
     this.implemento = null;
     this.listaEventos = null;
     this.eventos = null;
     this.PruebaComandoVacio = null;
     this.PruebaComandoVacio2 = null;
     this.pruebaComandoVacio3 = null;
     this.pruebaComandoVacio4 = null;
     this.ComandoAgregarItem = null;
     this.ComandoRegistrarPago = null;
     this.ComandoRegistrarPago2 = null;
     this.ComandoRegistrarPago3 = null;
     this.ComandoRegistrarPago4 = null;
     this.ComandoRegistrarPago5 = null;
     this.ComandoRegistrarPago6 = null;
 }