public static ClassroomAllocationCreatingDto GetClassroomAllocationCreatingDto()
 {
     return(new ClassroomAllocationCreatingDto
     {
         ClassroomId = ClassroomTestUtils.GetClassroom().Id,
         ExamId = ExamTestUtils.GetExam().Id
     });
 }
Beispiel #2
0
 public static Grade GetInitialStateGrade()
 {
     if (initialStateGrade == null)
     {
         initialStateGrade = new Grade(StudentTestUtils.GetStudent(), ExamTestUtils.GetExam());
     }
     return(initialStateGrade);
 }
 public static ClassroomAllocationDetailsDto GetClassroomAllocationDetailsDto(Guid id)
 {
     return(new ClassroomAllocationDetailsDto
     {
         Id = id,
         ClassroomId = ClassroomTestUtils.GetClassroom().Id,
         ExamId = ExamTestUtils.GetExam().Id
     });
 }
        public static ClassroomAllocation GetClassroomAllocation()
        {
            if (classroomAllocation == null)
            {
                classroomAllocation = new ClassroomAllocation(ExamTestUtils.GetExam(), ClassroomTestUtils.GetClassroom());
            }

            return(classroomAllocation);
        }
Beispiel #5
0
 public static GradeDto GetGradeWithValueDto(Guid id, DateTime date)
 {
     return(new GradeDto(id, 9, 10, date, null, StudentTestUtils.GetStudent2().Id, ExamTestUtils.GetExam().Id));
 }
Beispiel #6
0
 public static Grade GetGradeWithValue()
 {
     if (gradeWithValue == null)
     {
         gradeWithValue = new Grade(9, 10, DateTime.Now, StudentTestUtils.GetStudent2(), ExamTestUtils.GetExam());
     }
     return(gradeWithValue);
 }
Beispiel #7
0
 public static GradeEditingDto GetGradeEditingDto()
 {
     return(new GradeEditingDto(0, 0, data, null, StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id));
 }
Beispiel #8
0
 public static GradeCreationDto GetGradeCreationDto()
 {
     return(new GradeCreationDto(StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id));
 }
Beispiel #9
0
 public static GradeDto GetInitialGradeDto(Guid id)
 {
     return(new GradeDto(id, 0, 0, data, null, StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id));
 }