public static string GetSource(string courseId, Guid slideId, CourseManager courseManager, string code) { return(string.Equals(courseId, "web", StringComparison.OrdinalIgnoreCase) && slideId == Guid.Empty ? code : ((SingleFileExerciseBlock)((ExerciseSlide)courseManager.GetCourse(courseId).GetSlideById(slideId)) .Exercise) .BuildSolution(code) .SourceCode); }
public static string GetSource(string courseId, Guid slideId, CourseManager courseManager, string code) { return String.Equals(courseId, "web", StringComparison.OrdinalIgnoreCase) && slideId == Guid.Empty ? code : ((SingleFileExerciseBlock)((ExerciseSlide)courseManager.GetCourse(courseId).GetSlideById(slideId)) .Exercise) .BuildSolution(code) .SourceCode; }
public static string GetSource(string courseId, string slideId, CourseManager courseManager, string code) { return courseId == "web" && slideId == "runner" ? code : ((ExerciseSlide) courseManager.GetCourse(courseId).GetSlideById(slideId)) .Exercise .Solution .BuildSolution(code) .SourceCode; }
public static string GetSource(string courseId, string slideId, CourseManager courseManager, string code) { return(courseId == "web" && slideId == "runner" ? code : ((ExerciseSlide)courseManager.GetCourse(courseId).GetSlideById(slideId)) .Exercise .Solution .BuildSolution(code) .SourceCode); }
public void SetUp() { var cm = new CourseManager(new DirectoryInfo(@"..\..\..\uLearn.Web")); cm.ReloadCourse("ForTests.zip"); course = cm.GetCourses().Single(); }