public void TestInitialize() { TestCleanup(); _nowGetter = new NowGetterMock(); _checkTimer = new CheckTimer(_nowGetter) as ICheckTimer; }
public void TestInitialize() { TestCleanup(); _updatePackageMock = new UpdatePackageMock(); _updatePackageMock.PackageName = "CheckUrlHttpStatusIs200Test"; _notificationReceiverMock = new NotificationReceiverMock(); _nowGetterMock = new NowGetterMock(); _nowGetterMock.Now = new System.DateTime(2015, 5, 15, 11, 0, 0); _blackboardMock = new Mock<IBlackboard>(); }
public void TestInitialize() { TestCleanup(); _updatePackageAccessMock = new UpdatePackageAccessMock(); _updatePackageAccessMock.GetFilenameOnly = _fileName; // wird sowieso nie echt drauf zugegriffen _updatePackageMock = new UpdatePackageMock() { Access = _updatePackageAccessMock }; _updatePackageMock.Settings = new ServerSettings() { DatabaseUpdaterCommandArguments = "ddl", DatabaseUpdaterCommand = "connectionString", CheckUrlsAfterInstallation = new[] { "fakeCheckUrl1", "fakeCheckUrl2" }, }; _singleFileMock = new SingleFileMock(); _loggerMock = new LoggerMock(); _directoryMock = new DirectoryMock(); _runExternalCommandMock = new RunExternalCommandMock(); _htmlGetterMock = new Mock<IHtmlGetter>(); _nowGetterMock = new NowGetterMock(); _blackboardMock = new Mock<IBlackboard>(); _commandBuilder = new CommandBuilder(_singleFileMock, _directoryMock, _loggerMock, _runExternalCommandMock, _htmlGetterMock.Object, _nowGetterMock, _blackboardMock.Object); }
public void TestCleanup() { _nowGetter = null; _checkTimer = null; }
public void TestInitialize() { TestCleanup(); _settings = new Settings(); _settings.Global = new GlobalSettings() { CheckIntervalMinutes = 5 }; _nowGetterMock = new NowGetterMock(); _checkTimerMock = new CheckTimerMock(); _configurationConverterMock = new ConfigurationConverterMock(); _commandBuilderMock = new CommandBuilderMock(); _loggerMock = new LoggerMock(); _autoUpdaterCommandCreator = new AutoUpdaterCommandCreator(_checkTimerMock, _configurationConverterMock, _commandBuilderMock, _nowGetterMock, _loggerMock); }