예제 #1
0
        public void SetUp()
        {
            Directory.SetCurrentDirectory(TestsHelper.TestDirectory);
            if (!Directory.Exists(testFolderName))
            {
                Directory.CreateDirectory(testFolderName);
            }
            var loader = new CourseLoader(new UnitLoader(new XmlSlideLoader()));

            course = loader.Load(testCourseDirectory);
        }
예제 #2
0
 public Course LoadCourseFromDirectory(DirectoryInfo dir)
 {
     WaitWhileCourseIsLocked(GetCourseId(dir.Name));
     return(loader.Load(dir));
 }
예제 #3
0
 public async Task TestExportCourseFromDirectory(string coursePath)
 {
     var courseLoader = new CourseLoader();
     var stubCourse   = courseLoader.Load(new DirectoryInfo(coursePath));
     await courseExporter.InitialExportCourse(stubCourse, new CourseInitialExportOptions(stepikCourseId, stepikXQueueName, new List <Guid>()));
 }
예제 #4
0
        private Course LoadCourseFromDirectory(string directory)
        {
            var courseDirectory = new DirectoryInfo(testDataDirectory).GetSubdirectory(directory);

            return(loader.Load(courseDirectory));
        }