Exemplo n.º 1
0
 public LegacyDbDumpReaderProvider(
     IFileSystemOperationsService fileSystemOperations,
     ILoggingService loggingService)
 {
     this.fileSystemOperations = fileSystemOperations;
     this.loggingService       = loggingService;
 }
 public void SetUp()
 {
     loggingServiceMock              = Substitute.For <ILoggingService>();
     validatorMock                   = Substitute.For <ICommandLineArgumentsValidatorService>();
     legacyDbDumpReaderMock          = Substitute.For <ILegacyDbDumpReaderService>();
     dataMappingServiceMock          = Substitute.For <IDataMappingService>();
     fileSystemOperationsServiceMock = Substitute.For <IFileSystemOperationsService>();
     statsDataWriterMock             = Substitute.For <IStatsDataWriterService>();
     fileCompressionServiceMock      = Substitute.For <IFileCompressionService>();
     systemUnderTest                 = new MigratorProvider(
         loggingServiceMock,
         validatorMock,
         legacyDbDumpReaderMock,
         dataMappingServiceMock,
         fileSystemOperationsServiceMock,
         statsDataWriterMock,
         fileCompressionServiceMock);
 }
 public MigratorProvider(
     ILoggingService loggingService,
     ICommandLineArgumentsValidatorService inputValidator,
     ILegacyDbDumpReaderService legacyDbDumpReader,
     IDataMappingService dataMappingService,
     IFileSystemOperationsService fileSystemOperationsService,
     IStatsDataWriterService statsDataWriter,
     IFileCompressionService fileCompressionService)
 {
     this.loggingService     = loggingService;
     this.inputValidator     = inputValidator;
     this.legacyDbDumpReader = legacyDbDumpReader;
     this.legacyDbDumpReader.RecordsForDayRead += LegacyDbDumpReader_RecordsForDayRead;
     this.dataMappingService          = dataMappingService;
     this.fileSystemOperationsService = fileSystemOperationsService;
     this.statsDataWriter             = statsDataWriter;
     this.fileCompressionService      = fileCompressionService;
 }
 public StatsDataWriterProvider(IFileSystemOperationsService fileSystemOperations)
 {
     this.fileSystemOperations = fileSystemOperations;
 }
 public CommandLineArgumentsValidatorProvider(
     IFileSystemOperationsService fileSystemOperations)
 {
     this.fileSystemOperations = fileSystemOperations;
 }
 public void SetUp()
 {
     fileSystemOperationsMock = Substitute.For <IFileSystemOperationsService>();
     systemUnderTest          = new CommandLineArgumentsValidatorProvider(fileSystemOperationsMock);
 }