Beispiel #1
0
        private bool verificarExistencia(ClsNValidacion validacion)
        {
            bool result = validacion.existeCliente(error1, txtCliente, "El Cliente no Existe");

            result = validacion.existeProducto(error1, txtProducto, "El Producto no Existe") && result;
            return(result);
        }
Beispiel #2
0
        public void testNoExisteProductoNombre_returnFalse()
        {
            ClsNValidacion obj = ClsNValidacion.getValidacion();
            ErrorProvider  err = new ErrorProvider();
            TextBox        txt = new TextBox();

            txt.Text = "---------------";
            string mensaje = "Error";

            bool result = obj.existeProducto(err, txt, mensaje);

            Assert.IsFalse(result);
        }
Beispiel #3
0
        public void testExisteProductoCodigo_returnTrue()
        {
            ClsNValidacion obj = ClsNValidacion.getValidacion();
            ErrorProvider  err = new ErrorProvider();
            TextBox        txt = new TextBox();

            txt.Text = "0001";
            string mensaje = "Error";

            bool result = obj.existeProducto(err, txt, mensaje);

            Assert.IsTrue(result);
        }