public virtual void Setup() { _backupProcess = A.Fake<BackupProcess>(); _backupStorage = A.Fake<BackupStorage>(); _backupNotifier = A.Fake<BackupNotifier>(); _backupCleanUp = A.Fake<BackupCleanUp>(); }
public CleanUpOldDatabaseBackupsTask( FileSystem fileSystem, BackupFileDatesQuery backupFileDatesQuery, BackupSettings backupSettings, BackupNotifier backupNotifier) { _fileSystem = fileSystem; _backupFileDatesQuery = backupFileDatesQuery; _backupSettings = backupSettings; _backupNotifier = backupNotifier; }
public BackupController( BackupProcess backupProcess, BackupStorage backupStorage, BackupCleanUp backupCleanUp, BackupNotifier backupNotifier) { _backupProcess = backupProcess; _backupStorage = backupStorage; _backupCleanUp = backupCleanUp; _backupNotifier = backupNotifier; }
public virtual void Setup() { _fileSystem = A.Fake<FileSystem>(); _backupFileDatesQuery = A.Fake<BackupFileDatesQuery>(); _backupNotifier = A.Fake<BackupNotifier>(); _backupSettings = new BackupSettings { BackupTargetDestination = "A\\Target\\Destination" }; _backupCleanUp = GetSUT(); }