public EntryPoint( ICreatePath createPath, IClearPath clearPath, IDatabaseDump databaseDump, IZipAndMove zipAndMove, IPurgeLocal purgeLocal, IFtpCreateRemotePath ftpCreateRemotePath, IFtpSendFileToRemote ftpSendFileToRemote, IFtpListDirectoryOnRemote ftpListDirectoryOnRemote, IFtpPurgeRemoteData ftpPurgeRemoteData, string backupPath, string backupPathTemp, string remoteBasePath, StringCollection dbList) { _createPath = createPath; _clearPath = clearPath; _databaseDump = databaseDump; _zipAndMove = zipAndMove; _purgeLocal = purgeLocal; _ftpCreateRemotePath = ftpCreateRemotePath; _ftpSendFileToRemote = ftpSendFileToRemote; _ftpListDirectoryOnRemote = ftpListDirectoryOnRemote; _ftpPurgeRemoteData = ftpPurgeRemoteData; _backupPath = backupPath; _backupPathTemp = backupPathTemp; _remoteBasePath = remoteBasePath; _dbList = dbList; }
public ZipAndMoveTest() { _backupPath = @"C:\Data\Backup\MySQL\"; _backupPathTemp = @"C:\Data\Backup\MySQL\Temp\"; _backupName = new CreateDummyFiles().CreateSingle( 101, DateTime.Now.AddYears(1), _backupPath, false); //shim, move file to temp File.Move( _backupPath + _backupName, _backupPathTemp + _backupName); _zipAndMove = new ZipAndMove() { BackupPath = _backupPath, TempPath = _backupPathTemp }; }