public void TestInitialize() { TestCleanup(); _updatePackageAccessMock = new UpdatePackageAccessMock(); _updatePackageMock = new UpdatePackageMock(); _updatePackageMock.Access = _updatePackageAccessMock; _loggerMock = new LoggerMock(); _singleFileMock = new SingleFileMock(); }
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() { _commandBuilder = null; _updatePackageMock = null; _singleFileMock = null; _loggerMock = null; _directoryMock = null; }
public void TestCleanup() { _updatePackageAccessMock = null; _singleFileMock = null; _updatePackageMock = null; }