public void EsValida_WithAntiguedadMenor_ReturnsFalse()
        {
            string iNombre = "Ramiro";
            string iApellido = "Rivera";
            int iCantidadCuotas = 12;
            double iMonto = 20000;
            double iSueldo = 5500;
            DateTime iFechaNac = new DateTime(1993, 07, 11);
            DateTime iFechaIng = DateTime.Today;

            Empleo iEmpleo = new Empleo(iSueldo, iFechaIng);
            Cliente iCliente = new Cliente(iNombre, iApellido, iFechaNac, iEmpleo);
            iCliente.TipoCliente = TipoCliente.NoCliente;
            SolicitudPrestamo iSolicitudPrestamo = new SolicitudPrestamo(iCliente, iMonto, iCantidadCuotas);

            GestorPrestamos iGestorPrestamos = new GestorPrestamos();
            Assert.IsFalse(iGestorPrestamos.EsValida(iSolicitudPrestamo));
        }
Example #2
0
 /// <summary>
 /// Inicializa una nueva instancia de la class <see cref="Facade"/> .
 /// </summary>
 public Facade()
 {
     this.iGestorPrestamos = new GestorPrestamos();
 }