コード例 #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 Setup()
 {
     client               = new CustomWebApplicationFactory <Startup>().CreateClient();
     professor1           = ProfessorTestUtils.GetProfessor();
     professor2           = ProfessorTestUtils.GetProfessor2();
     professorDetailsDto1 = ProfessorTestUtils.GetProfessorDetailsDto(professor1.Id);
     professorDetailsDto2 = ProfessorTestUtils.GetProfessorDetailsDto(professor2.Id);
     professorCreationDto = ProfessorTestUtils.GetProfessorCreatingDto();
 }
コード例 #3
0
 public void TestInitialize()
 {
     this._professor1           = ProfessorTestUtils.GetProfessor();
     this._professor2           = ProfessorTestUtils.GetProfessor();
     this._professorDetailsDto1 = ProfessorTestUtils.GetProfessorDetailsDto(_professor1.Id);
     this._professorDetailsDto2 = ProfessorTestUtils.GetProfessorDetailsDto(_professor2.Id);
     this._professorCreatingDto = ProfessorTestUtils.GetProfessorCreatingDto();
     this._mockReadRepository   = new Mock <IReadRepository>();
     this._mockWriteRepository  = new Mock <IWriteRepository>();
     this._mockProfessorMapper  = new Mock <IProfessorMapper>();
     _professorService          = new ProfessorService(_mockReadRepository.Object, _mockWriteRepository.Object,
                                                       _mockProfessorMapper.Object);
 }