public void Check_Add_Driver() { //arrange Kustia_Trading_Agency_Management_BL kta_bl = new Kustia_Trading_Agency_Management_BL(); Kustia_Trading_Agency_Management_Entity information1 = new Kustia_Trading_Agency_Management_Entity(); information1.driver_name = "Mr. x"; information1.mobile_number = "12345678912"; information1.address = "Dhaka"; //act bool t = kta_bl.addDriver(information1); //assert Assert.AreEqual(true, t); }
private void button2_Click(object sender, EventArgs e) { Kustia_Trading_Agency_Management_BL kta_bl = new Kustia_Trading_Agency_Management_BL(); Kustia_Trading_Agency_Management_Entity information1 = new Kustia_Trading_Agency_Management_Entity(); information1.driver_name = textBox3.Text; information1.mobile_number = textBox4.Text; information1.address = textBox5.Text; if (kta_bl.addDriver(information1)) { textBox4.Text = ""; textBox5.Text = ""; textBox3.Text = ""; } else { MessageBox.Show("not successful"); } }