Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            GestorAdminEps obj4 = new GestorAdminEps();

            /* this.Visible = false;
             * Inicio inicio = new Inicio();
             * inicio.Visible = false;
             * Epss eps = new Epss(USUARIO.Text);
             * eps.Visible = true;*/
            // int temp4 = 0;



            if (USUARIO.Text != String.Empty && CONTRASENA.Text != String.Empty)
            {
                bool si4 = obj4.ValidarAdminEps(USUARIO.Text, CONTRASENA.Text.ToString());
                if (si4 == true)
                {
                    Epss eps = new Epss(USUARIO.Text);
                    this.Visible = false;
                    eps.Visible  = true;
                }
                else
                {
                    USUARIO.Text    = "";
                    CONTRASENA.Text = "";
                    MessageBox.Show("Lo sentimos, sus credenciales no se encuentran registradas "
                                    + " Verifiquelas e intentelo de nuevo");
                }
            }
            else
            {
                MessageBox.Show("Porfavor ingrese todos los campos");
            }
        }
Пример #2
0
        public void TestValidarAdminEps()
        {
            bool           respuesta = true;
            GestorAdminEps Gp        = new GestorAdminEps();
            Convertidor    obj1      = new Convertidor();

            Assert.AreEqual(respuesta, (Gp.ValidarAdminEps("SURA", "798")));
        }