Пример #1
0
        public void DeleteSubjectTest()
        {
            string subject = "SUB-001";
            bool   flag    = SubjectCRUD.DeleteSubject(subject);

            Assert.AreEqual(true, flag);
        }
Пример #2
0
        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("~");
            }
        }
Пример #3
0
        public bool SubjectDel_Test(string id)
        {
            bool flag = SubjectCRUD.DeleteSubject(id);

            return(flag);
        }