示例#1
0
 protected MarkSystemBuilder(ExamBuilder examBuilder)
 {
     if (examBuilder == null)
     {
         throw new ArgumentNullException(nameof(examBuilder));
     }
     ParentExamBuilder = examBuilder;
 }
示例#2
0
 public ThemeBuilder(Theme instance, ExamBuilder examBuilder)
 {
     ParentExamBuilder = examBuilder;
     if (ParentExamBuilder == null)
     {
         throw new ArgumentNullException(nameof(examBuilder));
     }
     Load(instance);
 }
示例#3
0
 public TicketBuilder(Ticket instance, ExamBuilder examBuilder)
 {
     QuestionGroupBuilders  = new ReadOnlyCollection <QuestionGroupBuilder>(questionGroupBuilders);
     SortedQuestionBuilders = new ReadOnlyCollection <QuestionBuilder>(sortedQuestionBuilders);
     ParentExamBuilder      = examBuilder;
     if (ParentExamBuilder == null)
     {
         throw new ArgumentNullException(nameof(examBuilder));
     }
     Load(instance);
 }
示例#4
0
 public static MarkSystemBuilder CreateBuilder(MarkSystem markSystem, ExamBuilder examBuilder)
 {
     if (markSystem == null)
     {
         throw new ArgumentNullException(nameof(markSystem));
     }
     if (markSystem is FiveStepMarkSystem fiveStepMarkSystem)
     {
         return(new FiveStepMarkSystemBuilder(fiveStepMarkSystem, examBuilder));
     }
     else
     {
         return(null);
     }
 }