示例#1
0
        public void LoadSchedule()
        {
            int        key = GlobalItems.getKey("users", "fname", "Dunkan");
            StudentWin obj = new StudentWin();

            obj.ScheduleLoad(key);
            Assert.IsNotNull(key);
        }
示例#2
0
        public void TestDeleteClass()
        {
            var f  = new ClassList();
            int id = GlobalItems.getKey("classes", "name", "Z100");

            if (id > 0)
            {
                f.deleteClass(id.ToString());
                Assert.IsFalse(GlobalItems.checkItemsInDB("classes", "name", "Z100"));
            }
        }
示例#3
0
        public void TestDeleteCourse()
        {
            var f  = new CourseList();
            int id = GlobalItems.getKey("course", "name", "Test");

            if (id > 0)
            {
                f.DeleteCourse(id.ToString());
                Assert.IsFalse(GlobalItems.checkItemsInDB("course", "name", "Test"));
            }
        }
示例#4
0
        public void TestDeleteDepartments()
        {
            var f  = new DepartmentList();
            int id = GlobalItems.getKey("departments", "name", "Biologia");

            if (id > 0)
            {
                f.delete_department(id.ToString());
                Assert.IsFalse(GlobalItems.checkItemsInDB("departments", "name", "Biologia"));
            }
        }