private void cbClassesSchedule_Click(object sender, EventArgs e) { if (txtSId.Text != "") { var classSchedule = cbClassesSchedule.SelectedItem as ClassSchedule; studentCRUD.DeleteStudent(classSchedule.Id, int.Parse(txtSId.Text)); } }
public void DeleteStudentTest() { string student = "STUD-001"; bool flag = StudentCRUD.DeleteStudent(student); Assert.AreEqual(true, flag); }
public bool StudentDel_Test(int id) { bool flag = StudentCRUD.DeleteStudent(id); return(flag); }