public static ClassroomAllocationCreatingDto GetClassroomAllocationCreatingDto() { return(new ClassroomAllocationCreatingDto { ClassroomId = ClassroomTestUtils.GetClassroom().Id, ExamId = ExamTestUtils.GetExam().Id }); }
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); }
public static GradeDto GetGradeWithValueDto(Guid id, DateTime date) { return(new GradeDto(id, 9, 10, date, null, StudentTestUtils.GetStudent2().Id, ExamTestUtils.GetExam().Id)); }
public static Grade GetGradeWithValue() { if (gradeWithValue == null) { gradeWithValue = new Grade(9, 10, DateTime.Now, StudentTestUtils.GetStudent2(), ExamTestUtils.GetExam()); } return(gradeWithValue); }
public static GradeEditingDto GetGradeEditingDto() { return(new GradeEditingDto(0, 0, data, null, StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id)); }
public static GradeCreationDto GetGradeCreationDto() { return(new GradeCreationDto(StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id)); }
public static GradeDto GetInitialGradeDto(Guid id) { return(new GradeDto(id, 0, 0, data, null, StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id)); }