Exemple #1
0
 public static Grade GetGradeWithValue()
 {
     if (gradeWithValue == null)
     {
         gradeWithValue = new Grade(9, 10, DateTime.Now, StudentTestUtils.GetStudent2(), ExamTestUtils.GetExam());
     }
     return(gradeWithValue);
 }
Exemple #2
0
 public static Grade GetInitialStateGrade()
 {
     if (initialStateGrade == null)
     {
         initialStateGrade = new Grade(StudentTestUtils.GetStudent(), ExamTestUtils.GetExam());
     }
     return(initialStateGrade);
 }
Exemple #3
0
 public static GradeDto GetGradeWithValueDto(Guid id, DateTime date)
 {
     return(new GradeDto(id, 9, 10, date, null, StudentTestUtils.GetStudent2().Id, ExamTestUtils.GetExam().Id));
 }
Exemple #4
0
 public static GradeEditingDto GetGradeEditingDto()
 {
     return(new GradeEditingDto(0, 0, data, null, StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id));
 }
Exemple #5
0
 public static GradeCreationDto GetGradeCreationDto()
 {
     return(new GradeCreationDto(StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id));
 }
Exemple #6
0
 public static GradeDto GetInitialGradeDto(Guid id)
 {
     return(new GradeDto(id, 0, 0, data, null, StudentTestUtils.GetStudent().Id, ExamTestUtils.GetExam().Id));
 }