Beispiel #1
0
 protected MarkSystemBuilder(ExamBuilder examBuilder)
 {
     if (examBuilder == null)
     {
         throw new ArgumentNullException(nameof(examBuilder));
     }
     ParentExamBuilder = examBuilder;
 }
Beispiel #2
0
 public ThemeBuilder(Theme instance, ExamBuilder examBuilder)
 {
     ParentExamBuilder = examBuilder;
     if (ParentExamBuilder == null)
     {
         throw new ArgumentNullException(nameof(examBuilder));
     }
     Load(instance);
 }
Beispiel #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);
 }
Beispiel #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);
     }
 }