public void Check_Add_Customer() { 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.cus_name = "aaa"; information1.cus_mob_no = "xxx"; information1.cus_address = "zzz"; //act bool t = (kta_bl.addCustomer(information1)); //assert Assert.AreEqual(true, t); }
private void button1_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.cus_name = textBox1.Text; information1.cus_mob_no = textBox2.Text; information1.cus_address = textBox3.Text; if (kta_bl.addCustomer(information1)) { textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; } else { MessageBox.Show("not successful"); } }