public void LoadSchedule() { int key = GlobalItems.getKey("users", "fname", "Dunkan"); StudentWin obj = new StudentWin(); obj.ScheduleLoad(key); Assert.IsNotNull(key); }
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")); } }
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")); } }
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")); } }