Пример #1
0
        public void RefreshRemoteSource_Called_ReturnsTrue()
        {
            //arrange
            _installManager.SetUserDisclaimerConfirmed();
            _installManager.SyncConfig();
            string firstSource = _installManager.RemoteSources.First();
            bool   result      = _installManager.RefreshRemoteSource(firstSource);

            //act
            Assert.That(result, Is.True);
        }
Пример #2
0
        public void Setup()
        {
            _swordManager = new Manager("LocalManager");
            _swordModule  = _swordManager.GetModuleByName("ESV");

            if (_swordModule != null)
            {
                return;
            }
            using (var installManager = new InstallManager("baseDirectory"))
            {
                installManager.SetUserDisclaimerConfirmed();
                installManager.SyncConfig();
                installManager.RefreshRemoteSource("CrossWire");

                installManager.RemoteInstallModule(_swordManager, "CrossWire", "ESV");
                _swordModule = _swordManager.GetModuleByName("ESV");
            }
        }
Пример #3
0
        public void Setup()
        {
            _swordManager = new Manager("LocalManager");
            _swordModule = _swordManager.GetModuleByName("ESV");

            if(_swordModule != null)
            {
                return;
            }
            using(var installManager = new InstallManager("baseDirectory"))
            {
                installManager.SetUserDisclaimerConfirmed();
                installManager.SyncConfig();
                installManager.RefreshRemoteSource("CrossWire");

                installManager.RemoteInstallModule(_swordManager, "CrossWire", "ESV");
                _swordModule = _swordManager.GetModuleByName("ESV");
            }
        }