public ExamType Build()
        {
            var examType = new ExamType(_name, _defaultIncorrectCorrectEliminationValue, _order);

            foreach (var formType in _formTypes)
            {
                examType.AddFormType(formType);
            }

            return(examType);
        }
Пример #2
0
 public void Update(
     string newName,
     ExamType examType,
     int incorrectEliminationRate,
     DateTime examDate,
     string applicableFormTypeCode,
     AnswerFormFormat newAnswerFormFormat,
     Lesson lesson,
     ExamBookletType examBookletType,
     string newNotes)
 {
     Name                     = newName;
     AnswerFormFormat         = newAnswerFormFormat;
     ExamType                 = examType;
     IncorrectEliminationRate = incorrectEliminationRate;
     ExamDate                 = examDate;
     ApplicableFormTypeCode   = applicableFormTypeCode;
     Notes                    = newNotes;
     Lesson                   = lesson;
     ExamBookletType          = examBookletType;
 }
Пример #3
0
 public Exam(
     Name name,
     DateTime examDate,
     ExamType examType,
     ExamBookletType examBookletType,
     IncorrectEliminationRate incorrectEliminationRate,
     AnswerFormFormat answerFormFormat,
     Lesson lesson,
     string applicableFormTypeCode,
     string notes)
     : this()
 {
     AnswerFormFormat         = answerFormFormat;
     ExamBookletType          = examBookletType;
     Name                     = name;
     ExamDate                 = examDate;
     ExamType                 = examType;
     IncorrectEliminationRate = incorrectEliminationRate;
     Notes                    = notes;
     ApplicableFormTypeCode   = applicableFormTypeCode;
     Lesson                   = lesson;
 }