public void TestImportCourse() { var coursesPath = Path.Combine(Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName(Environment.CurrentDirectory))), "Courses"); var courses = Directory.GetFiles(coursesPath, "*.zip", SearchOption.TopDirectoryOnly); foreach (var coursePath in courses) { Logger.WriteLine("[COURSE IMPORTER] Importing course: " + coursePath); int courseId = ImportTestCourse(coursePath); Logger.WriteLine("[COURSE IMPORTER] ID = " + courseId + ". Pages: "); var pages = StudentRecordFinder.GetCoursePages(courseId); foreach (var p in pages) { var url = string.Format(@"[COURSE IMPORTER] ~/Student/IudicoPage{0}?PageId={1}", ((FX_PAGETYPE)p.PageTypeRef).GetHandlerExtention(), p.ID); Logger.WriteLine(url); } } }