Exemplo n.º 1
0
        public void TestGetByName()
        {
            SpaceCoffee spaceC2 = new SpaceCoffee();

            spaceC2.Name = "Sala";
            TableResponse response = spaceCBLL.GetByName(spaceC2);

            Assert.AreEqual(true, response.Success);
        }
Exemplo n.º 2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     listBoxStage1.DataSource = null;
     listBoxStage2.DataSource = null;
     if (cboxFilter.Text == "Treinamento")
     {
         SpaceTraining space = new SpaceTraining();
         space.Name = txtSearch.Text;
         SpaceTrainingBLL spaceBLL = new SpaceTrainingBLL();
         TableResponse    r        = spaceBLL.GetByName(space);
         dataGridView1.DataSource = r.DataTable;
     }
     else
     {
         SpaceCoffee space = new SpaceCoffee();
         space.Name = txtSearch.Text;
         SpaceCoffeeBLL spaceBLL = new SpaceCoffeeBLL();
         TableResponse  r        = spaceBLL.GetByName(space);
         dataGridView1.DataSource = r.DataTable;
     }
     txtSearch.Clear();
 }