Example #1
0
 protected override void Arrange()
 {
     base.Arrange();
     base.Act();
     FolderSettings.Stub(x => x.GetDatasets()).Return(SourceDir);
     DirectoryImpl.Stub(x => x.CreateDataSetDirectory()).Return(destination);
     TransferInformationFactory.Stub(x => x.Create(SourceDir, destination)).Return(TransferInformation);
     AcceptedFileExtensionFactory.Stub(x => x.Create(Extensions)).Return(AcceptedExtensions);
 }
Example #2
0
 protected override void Arrange()
 {
     base.Arrange();
     base.Act();
     FolderSettings.Stub(x => x.GetSsis()).Return(FolderPath);
     DirectoryImpl.Stub(x => x.ReadDirectory(FolderPath)).Return(Files);
     FileInfoFactory.Stub(x => x.Create(File1)).Return(FileInfo1);
     FileInfoFactory.Stub(x => x.Create(File2)).Return(FileInfo2);
 }
Example #3
0
 protected override void Arrange()
 {
     base.Arrange();
     base.Act();
     FolderSettings.Stub(x => x.GetSqlUpdates()).Return(sqlSourceUpdatesPath);
     FolderSettings.Stub(x => x.GetSqlMaster()).Return(sqlSourceMasterPath);
     DirectoryImpl.Stub(x => x.CreateSqlMasterDirectory()).Return(sqlDestMasterPath);
     DirectoryImpl.Stub(x => x.CreateSqlUpdatesDirectory()).Return(sqlDestUpdatesPath);
     DirectoryImpl.Stub(x => x.CreateSqlRootDirectory()).Return(sqlRootPath);
     TransferInformationFactory.Stub(x => x.Create(sqlSourceMasterPath, sqlDestMasterPath))
     .Return(TransferInformation);
     AcceptedFileExtensionFactory.Stub(x => x.Create(Extensions)).Return(AcceptedExtensions);
     AcceptedFilePrefixFactory.Stub(x => x.Create(Prefixes)).Return(AcceptedPrefix);
 }