public void RemoteInstallModule_KJV_ReturnsTrue() { //arrange _installManager.SetUserDisclaimerConfirmed(); Assert.That(_installManager.SyncConfig(), Is.True); Assert.That(_installManager.RefreshRemoteSource("CrossWire"), Is.True); using (Manager manager = new Manager("LocalManager")) { //act bool result = _installManager.RemoteInstallModule(manager, "CrossWire", "KJV"); //assert Assert.That(result, Is.True); } }
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"); } }
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"); } }