public void Cleanup()
 {
     this._classroom            = null;
     this._classroomCreatingDto = null;
     this._classroomDetailsDto  = null;
     this._classroomMapper      = null;
 }
 public void Setup()
 {
     this._classroom            = ClassroomTestUtils.GetClassroom();
     this._classroomCreatingDto = ClassroomTestUtils.GetClassroomCreatingDto();
     this._classroomDetailsDto  = ClassroomTestUtils.GetClassroomDetailsDto(_classroom.Id);
     this._classroomMapper      = new ClassroomMapper();
 }
示例#3
0
 public ClassroomService(IWriteRepository writeRepository, IReadRepository readRepository, IClassroomMapper classroomMapper)
 {
     this.writeRepository = writeRepository ?? throw new ArgumentNullException();
     this.readRepository  = readRepository ?? throw new ArgumentNullException();
     this.classroomMapper = classroomMapper ?? throw new ArgumentNullException();
 }