コード例 #1
0
 public void Setup()
 {
     this._professor            = ProfessorTestUtils.GetProfessor();
     this._professorDetailsDto  = ProfessorTestUtils.GetProfessorDetailsDto(_professor.Id);
     this._professorCreatingDto = ProfessorTestUtils.GetProfessorCreatingDto();
     this._professorMapper      = new ProfessorMapper();
 }
コード例 #2
0
 public void Cleanup()
 {
     this._professor            = null;
     this._professorDetailsDto  = null;
     this._professorCreatingDto = null;
     this._professorMapper      = null;
 }
コード例 #3
0
 public ProfessorService(IReadRepository readRepository, IWriteRepository writeRepository,
                         IProfessorMapper professorMapper)
 {
     this.writeRepository = writeRepository ?? throw new ArgumentNullException();
     this.readRepository  = readRepository ?? throw new ArgumentNullException();
     this.professorMapper = professorMapper ?? throw new ArgumentNullException();
 }