public void import_delete() { pkg.ImportUploadedCourse(courseId, courseServerPath); pkg.VersionUploadedCourse(courseId, courseServerPath, null); pkg.VersionUploadedCourse(courseId, courseServerPath, null); RegistrationService reg = new RegistrationService(cfg, svc); reg.CreateRegistration(regId, courseId, 0, tstLearner, fName, lName, postback, authType, pbLogin, pbPass, resultFmt); pkg.DeleteCourse(courseId, true); pkg.DeleteCourseVersion(courseId, 1); pkg.DeleteCourse(courseId); }
public void createDelete() { try { reg.CreateRegistration(regId, tstCourse, 0, tstLearner, fName, lName, postback, authType, pbLogin, pbPass, resultFmt); } catch (ServiceException se) { if (se.Message == testCourseMissingMsg) { Assert.Ignore("test course does not exist on the server"); } else { throw; } } Assert.AreEqual(1, reg.GetRegistrationList(regId, null).Count, "Registration ID " + regId + " just created not found on server."); reg.ResetGlobalObjectives(regId, false); reg.ResetRegistration(regId); reg.DeleteRegistration(regId, false); }