Exemple #1
0
        public void SosOnlinePasswordDecryptsAsEncrypted()
        {
            var settings = new SirenOfShameSettings(useMef: false);

            settings.SetSosOnlinePassword("blah!");
            Assert.AreEqual("blah!", settings.GetSosOnlinePassword());
        }
Exemple #2
0
        public void SosOnlinePasswordIsStoredEncrypted()
        {
            var settings = new SirenOfShameSettings(useMef: false);

            Assert.IsNull(settings.SosOnlinePassword);
            settings.SetSosOnlinePassword("blah!");
            Assert.AreNotEqual("blah!", settings.SosOnlinePassword);
        }
Exemple #3
0
 private void SaveSosOnlineSettings()
 {
     _settings.SosOnlineUsername = _sosOnlineLogin.Text;
     _settings.SetSosOnlinePassword(_sosOnlinePassword.Text);
     _settings.SosOnlineProxyUrl      = _proxyUrl.Text;
     _settings.SosOnlineProxyUsername = _proxyUsername.Text;
     _settings.SetSosOnlineProxyPassword(_proxyPassword.Text);
     _settings.Save();
 }