public void Cleanup()
 {
     this._studentCourse            = null;
     this._studentCourseCreationDto = null;
     this._studentCourseDetailsDto  = null;
     this._studentCourseMapper      = null;
 }
Ejemplo n.º 2
0
 public StudentCourseService(IReadRepository readRepository, IWriteRepository writeRepository, IStudentCourseMapper studentCourseMapper, ICourseMapper courseMapper)
 {
     this.readRepository      = readRepository ?? throw new ArgumentNullException();
     this.writeRepository     = writeRepository ?? throw new ArgumentNullException();
     this.studentCourseMapper = studentCourseMapper ?? throw new ArgumentNullException();
     this.courseMapper        = courseMapper ?? throw new ArgumentNullException();
 }
 public void Setup()
 {
     this._studentCourse            = StudentCourseTestUtils.GetStudentCourse();
     this._studentCourseCreationDto =
         StudentCourseTestUtils.GetStudentCourseCreationDto(this._studentCourse.CourseId);
     this._studentCourseDetailsDto =
         StudentCourseTestUtils.GetStudentCourseDetailsDto(this._studentCourse.StudentId,
                                                           this._studentCourse.CourseId);
     this._studentCourseMapper = new StudentCourseMapper();
 }