private void novoEventoToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show("Criar um novo evento apagará todos os registros de pessoas e salas. Deseja continuar?", "ATENÇÂO", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) { return; } else { SpaceTrainingBLL spaceTBLL = new SpaceTrainingBLL(); SpaceCoffeeBLL spaceCBLL = new SpaceCoffeeBLL(); PersonBLL personBLL = new PersonBLL(); Response r1 = spaceTBLL.DeleteAll(); Response r2 = personBLL.DeleteAll(); Response r3 = spaceCBLL.DeleteAll(); lblTwo.Visible = false; lblThree.Visible = false; lblFour.Visible = false; btnInsertTrainingSpace.Visible = false; btnInsertCoffeeSpace.Visible = false; btnExecute.Visible = false; btnNext1.Visible = false; btnNext2.Visible = false; btnNext3.Visible = false; consultaToolStripMenuItem.Visible = false; lblTitle.Text = "SIGA O PASSO A PASSO"; lblOne.Visible = true; btnInsertPerson.Visible = true; MessageBox.Show(r1.Message); } }
public void TestDeleteAll() { Response response = spaceCBLL.DeleteAll(); Assert.AreEqual(true, response.Success); }