コード例 #1
0
 public override void SetUp()
 {
     base.SetUp();
     scmDataStub      = MockRepository.GenerateStub <IScmData>();
     mapper           = new MappingController(scmDataStub);
     commitMapperStub = MockRepository.GenerateStub <CommitMapper>(null as IScmData);
     bugFixMapperStub = MockRepository.GenerateStub <BugFixMapper>(null, null);
     fileMapperStub   = MockRepository.GenerateStub <ProjectFileMapper>(null as IScmData);
 }
コード例 #2
0
 public override void SetUp()
 {
     base.SetUp();
     touchedFiles = new List <TouchedFile>();
     logStub.Stub(x => x.TouchedFiles)
     .Return(touchedFiles);
     scmData.Stub(x => x.Log("10"))
     .Return(logStub);
     mapper = new ProjectFileMapper(scmData);
 }