Beispiel #1
0
 public void Setup()
 {
     this._student            = StudentTestUtils.GetStudent();
     this._studentDetailsDto  = StudentTestUtils.GetStudentDetailsDto(this._student.Id);
     this._studentCreationDto = StudentTestUtils.GetStudentCreationDto();
     this._studentMapper      = new StudentMapper();
 }
 public void TestInitialize()
 {
     this._student1            = StudentTestUtils.GetStudent();
     this._student2            = StudentTestUtils.GetStudent();
     this._studentDto1         = StudentTestUtils.GetStudentDetailsDto(_student1.Id);
     this._studentDto2         = StudentTestUtils.GetStudentDetailsDto(_student2.Id);
     this._studentCreationDto  = StudentTestUtils.GetStudentCreationDto();
     this._mockReadRepository  = new Mock <IReadRepository>();
     this._mockWriteRepository = new Mock <IWriteRepository>();
     this._mockStudentMapper   = new Mock <IStudentMapper>();
     _studentService           = new StudentService(_mockReadRepository.Object, _mockWriteRepository.Object,
                                                    _mockStudentMapper.Object);
 }
 public void Setup()
 {
     client                   = new CustomWebApplicationFactory <Startup>().CreateClient();
     student1                 = StudentTestUtils.GetStudent();
     student2                 = StudentTestUtils.GetStudent2();
     studentDetailsDto1       = StudentTestUtils.GetStudentDetailsDto(student1.Id);
     studentDetailsDto2       = StudentTestUtils.GetStudentDetailsDto(student2.Id);
     studentCreationDto       = StudentTestUtils.GetStudentCreationDto();
     course1                  = CourseTestUtils.GetCourse();
     course2                  = CourseTestUtils.GetCourse2();
     courseDetailsDto         = CourseTestUtils.GetCourseDetailsDto(course1.Id);
     studentCourseCreationDto = StudentCourseTestUtils.GetStudentCourseCreationDto(course2.Id);
 }