Exemple #1
0
 public void Setup()
 {
     this.grade            = GradeTestUtils.GetInitialStateGrade();
     this.gradeDto         = GradeTestUtils.GetInitialGradeDto(grade.Id);
     this.gradeCreationDto = GradeTestUtils.GetGradeCreationDto();
     this.gradeEditingDto  = GradeTestUtils.GetGradeEditingDto();
     this.gradeMapper      = new GradeMapper();
 }
 public void Setup()
 {
     client                = new CustomWebApplicationFactory <Startup>().CreateClient();
     this.grade            = GradeTestUtils.GetInitialStateGrade();
     this.gradeDto         = GradeTestUtils.GetInitialGradeDto(grade.Id);
     this.gradeCreationDto = GradeTestUtils.GetGradeCreationDto();
     this.gradeEditingDto  = GradeTestUtils.GetGradeEditingDto();
 }
Exemple #3
0
        public void Setup()
        {
            this.initialStateGrade    = GradeTestUtils.GetInitialStateGrade();
            this.initialStateGradeDto = GradeTestUtils.GetInitialGradeDto(initialStateGrade.Id);
            this.gradeCreationDto     = GradeTestUtils.GetGradeCreationDto();
            this.gradeEditingDto      = GradeTestUtils.GetGradeEditingDto();
            this._mockReadRepository  = new Mock <IReadRepository>();
            this._mockWriteRepository = new Mock <IWriteRepository>();
            this._mockGradeMapper     = new Mock <IGradeMapper>();
            this._mockStudentService  = new Mock <IStudentService>();
            this._mockExamService     = new Mock <IExamService>();
            this._mockEmailService    = new Mock <IEmailService>();

            _gradeService = new GradeService(_mockReadRepository.Object, _mockWriteRepository.Object,
                                             _mockGradeMapper.Object, _mockStudentService.Object, _mockExamService.Object, _mockEmailService.Object);
        }