public void DeleteSubjectTest() { string subject = "SUB-001"; bool flag = SubjectCRUD.DeleteSubject(subject); Assert.AreEqual(true, flag); }
public void DeleteSubject(object sender, EventArgs e) { SubjectCRUD add = new SubjectCRUD(); bool success = add.DeleteSubject((int)subjectID); if (success) { string path = "Subjects/" + subjectID + "/"; Directory.Delete(Server.MapPath(path), true); Response.Redirect("~"); } }
public bool SubjectDel_Test(string id) { bool flag = SubjectCRUD.DeleteSubject(id); return(flag); }