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;
 }