コード例 #1
0
        public void TestCleanup()
        {
            _updatePackageFactory = null;

            _serverSettings = null;
            _updatePackageFactoryAccessMock = null;
        }
コード例 #2
0
        public void TestInitialize()
        {
            TestCleanup();

            _serverSettings = new ServerSettings();
            _serverSettings.Type = GetDataMethod.LocalFile;
            _serverSettings.Path = "UpdatePackageFactoryTest_CreateDefaultCommand";

            _updatePackageFactoryAccessMock = new UpdatePackageAccessFactoryMock();
            _updatePackageFactoryAccessMock.CreateLocalFileAccess.Add(_serverSettings.Path, new LocalFileAccess(_serverSettings.Path));

            _htmlGetterMock = new Mock<IHtmlGetter>();

            _updatePackageFactory = new UpdatePackageFactory(_updatePackageFactoryAccessMock, _htmlGetterMock.Object);
        }