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