protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         var cDoc = new cDocente();
         this.listDocentes.DataSource = cDoc.GetListDocentes();
         this.listDocentes.DataBind();
     }
 }
        public void ValidarUsuarioNullUserNullPass_False()
        {
            string   usuarioIngresado    = "";
            string   contraseñaIngresado = "";
            bool     estadoResultante    = false;
            cDocente cAutenticacion      = new cDocente();
            var      result = cAutenticacion.RespuestaLogin(usuarioIngresado, contraseñaIngresado);

            Assert.AreEqual(estadoResultante, result);
        }
        public void ValidarUsuarioOkUserOkPass_True()
        {
            string   usuarioIngresado    = "DP001";
            string   contraseñaIngresado = "1234";
            bool     estadoResultante    = true;
            cDocente cAutenticacion      = new cDocente();
            var      result = cAutenticacion.RespuestaLogin(usuarioIngresado, contraseñaIngresado);

            Assert.AreEqual(estadoResultante, result);
        }
        public Int32  GrabarDocente(SqlConnection con, SqlTransaction tran)
        {
            string   Apellido   = txtApellido.Text;
            string   NroDoc     = txtNroDoc.Text;
            string   Nombre     = txtNombre.Text;
            string   Email      = txtMail.Text;
            string   Celular    = txtTelefono.Text;
            Int32    CodDocente = 0;
            cDocente doc        = new cDocente();

            if (txtCodDocente.Text == "")
            {
                CodDocente         = doc.GrabarDocenteTransaccion(con, tran, NroDoc, Apellido, Nombre, Email, Celular);
                txtCodDocente.Text = CodDocente.ToString();
            }
            return(CodDocente);
        }