public void pruebaObtener() { mesaDAL = new MesaDALImpl(); int idMesa = mesaDAL.obtenerMesaPorId(2).ID_MESA; Assert.AreEqual(2, idMesa); }
private void tablaMesas_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { int idMesa = Int32.Parse(tablaMesas.Rows[e.RowIndex].Cells[0].Value.ToString()); using (editarMesa form = new editarMesa()) { MESA mesa = new MESA(); mesa = mesaDAL.obtenerMesaPorId(idMesa); form.mesa = mesa; form.ShowDialog(this); cargarMesas(); } } catch (Exception) { throw; } }