protected void DeleteRowButton_Click(Object sender, GridViewDeleteEventArgs e) { TableCell cell = gridView1.Rows[e.RowIndex].Cells[1]; int id = Convert.ToInt32(cell.Text); Sindico sindico = new Sindico(); sindico.Id = id; sindico.Excluir(); this.redirecionarMesmaPagina(); }
public void ExclusaoSindico() { Sindico sindico = new Sindico(); sindico.Id = 1; Assert.IsTrue(sindico.Excluir()); }