public void Setup() { this._professor = ProfessorTestUtils.GetProfessor(); this._professorDetailsDto = ProfessorTestUtils.GetProfessorDetailsDto(_professor.Id); this._professorCreatingDto = ProfessorTestUtils.GetProfessorCreatingDto(); this._professorMapper = new ProfessorMapper(); }
public void Cleanup() { this._professor = null; this._professorDetailsDto = null; this._professorCreatingDto = null; this._professorMapper = null; }
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(); }