public void Setup() { _serviceStopper = MockRepository.GenerateMock<IServiceStopper>(); _serviceStarter = MockRepository.GenerateMock<IServiceStarter>(); logger = MockRepository.GenerateMock<ILogger>(); _serviceRestarter = new ServiceRestarter(_serviceStopper, _serviceStarter, logger); }
public void Setup() { _serviceStopper = MockRepository.GenerateMock <IServiceStopper>(); _serviceStarter = MockRepository.GenerateMock <IServiceStarter>(); logger = MockRepository.GenerateMock <ILogger>(); _serviceRestarter = new ServiceRestarter(_serviceStopper, _serviceStarter, logger); }
public EnsureMinAgentUpdater(ISleeper sleeper, IUnzipper unzipper, IFileCopier fileCopier, IFinalizer finalizer, IServiceStopper serviceStopper, IServiceStarter serviceStarter, ILogger logger, IBackupUpdater backupUpdater, IExtractEmbededResource extractEmbededResource, IVersionChecker versionChecker) { _sleeper = sleeper; _unzipper = unzipper; _fileCopier = fileCopier; _finalizer = finalizer; _serviceStopper = serviceStopper; _serviceStarter = serviceStarter; _logger = logger; _backupUpdater = backupUpdater; _extractEmbededResource = extractEmbededResource; _versionChecker = versionChecker; }
public UpdaterUpdate(ISleeper sleeper, IDownloader downloader, IChecksumValidator checksumValidator, IUnzipper unzipper, IFileCopier fileCopier, IFinalizer finalizer, IServiceStopper serviceStopper, IServiceStarter serviceStarter, IConnectionChecker connectionChecker, IAgentUpdateMessageHandler agentUpdateMessageHandler, ILogger logger) { _sleeper = sleeper; _downloader = downloader; _checksumValidator = checksumValidator; _unzipper = unzipper; _fileCopier = fileCopier; _finalizer = finalizer; _serviceStopper = serviceStopper; _serviceStarter = serviceStarter; _connectionChecker = connectionChecker; _agentUpdateMessageHandler = agentUpdateMessageHandler; _logger = logger; }
public UpdaterUpdate(ISleeper sleeper, IDownloader downloader, IChecksumValidator checksumValidator, IUnzipper unzipper, IFileCopier fileCopier, IFinalizer finalizer, IServiceStopper serviceStopper, IServiceStarter serviceStarter, IConnectionChecker connectionChecker, IAgentUpdateMessageHandler agentUpdateMessageHandler, ILogger logger) { _sleeper = sleeper; _downloader = downloader; _checksumValidator = checksumValidator; _unzipper = unzipper; _fileCopier = fileCopier; _finalizer = finalizer; _serviceStopper = serviceStopper; _serviceStarter = serviceStarter; _connectionChecker = connectionChecker; _agentUpdateMessageHandler = agentUpdateMessageHandler; _logger = logger; }
public void Setup() { _agentUpdateInfo = "http://something.com/file.zip,544564abc453de787ad"; _downloader = MockRepository.GenerateMock <IDownloader>(); _checksumValidator = MockRepository.GenerateMock <IChecksumValidator>(); _unzipper = MockRepository.GenerateMock <IUnzipper>(); _fileCopier = MockRepository.GenerateMock <IFileCopier>(); _finalizer = MockRepository.GenerateMock <IFinalizer>(); _connectionChecker = MockRepository.GenerateMock <IConnectionChecker>(); _sleeper = MockRepository.GenerateMock <ISleeper>(); _logger = MockRepository.GenerateMock <ILogger>(); _serviceStopper = MockRepository.GenerateMock <IServiceStopper>(); _serviceStarter = MockRepository.GenerateMock <IServiceStarter>(); _agentUpdateMessageHandler = new AgentUpdateMessageHandler(); _logger.Stub(x => x.Log(Arg <string> .Is.Anything)); _updaterUpdate = new UpdaterUpdate(_sleeper, _downloader, _checksumValidator, _unzipper, _fileCopier, _finalizer, _serviceStopper, _serviceStarter, _connectionChecker, _agentUpdateMessageHandler, _logger); }
public void Setup() { _agentUpdateInfo = "http://something.com/file.zip,544564abc453de787ad"; _downloader = MockRepository.GenerateMock<IDownloader>(); _checksumValidator = MockRepository.GenerateMock<IChecksumValidator>(); _unzipper = MockRepository.GenerateMock<IUnzipper>(); _fileCopier = MockRepository.GenerateMock<IFileCopier>(); _finalizer = MockRepository.GenerateMock<IFinalizer>(); _connectionChecker = MockRepository.GenerateMock<IConnectionChecker>(); _sleeper = MockRepository.GenerateMock<ISleeper>(); _logger = MockRepository.GenerateMock<ILogger>(); _serviceStopper = MockRepository.GenerateMock<IServiceStopper>(); _serviceStarter = MockRepository.GenerateMock<IServiceStarter>(); _agentUpdateMessageHandler = new AgentUpdateMessageHandler(); _logger.Stub(x => x.Log(Arg<string>.Is.Anything)); _updaterUpdate = new UpdaterUpdate(_sleeper, _downloader, _checksumValidator, _unzipper, _fileCopier, _finalizer, _serviceStopper, _serviceStarter, _connectionChecker, _agentUpdateMessageHandler, _logger); }
public ServiceRestarter(IServiceStopper _serviceStopper, IServiceStarter _serviceStarter, ILogger logger) { this._serviceStopper = _serviceStopper; this._serviceStarter = _serviceStarter; _logger = logger; }
public ServiceRestarter(IServiceStopper _serviceStopper, IServiceStarter _serviceStarter, ILogger logger) { this._serviceStopper = _serviceStopper; this._serviceStarter = _serviceStarter; _logger = logger; }