protected void btnAdicionar_Click(object sender, EventArgs e)
 {
     string xid = Request.QueryString["ID"];
     using (IConnection Conexion = new Connection())
     {
         IDao<ClassificacaoEntity> dao = new ClassificacaoCarrierDAO(Conexion);
         ClassificacaoEntity entity = dao.FindOrDefault(xid);
         entity.tipo = ddlTipo.SelectedValue;
         entity.descricao = txtDescricao.Text;
         dao.Update(entity);
         Response.Redirect("~/Administrativa/ConsultarClassificacao.aspx");
     }
 }
        public void updateTest()
        {
            using (IConnection Conexion = new Connection())
            {
                IDao<ClassificacaoEntity> dao = new ClassificacaoCarrierDAO(Conexion);
                ClassificacaoEntity entity = dao.FindOrDefault(xid);

                entity.descricao = "teste update";

                bool esperado = true;
                bool result = dao.Update(entity);
                Assert.AreEqual(esperado, result);
            }
        }