public int ReadInt32(string affiliateApplication, string valueName)
 {
     try
     {
         return(SSOSettingsFileReader.ReadInt32(affiliateApplication, valueName));
     }
     catch (Exception exception)
     {
         if (_logger.IsWarnEnabled)
         {
             _logger.Warn(string.Format("Cannot read int '{0}' from '{1}' application's SSO settings.", valueName, affiliateApplication), exception);
         }
         throw;
     }
 }
Пример #2
0
        public void ReadInt32()
        {
            try
            {
                SSOSettingsManager.DeleteApp(AppName);
            }
            catch { }

            try
            {
                SSOSettingsManager.CreateApp(AppName, "BizTalk Application Users", "BizTalk Server Administrators");

                SSOSettingsManager.WriteRawSettings(AppName, DefaultSettings);

                int value = SSOSettingsFileReader.ReadInt32(AppName, "Int32Value");

                Assert.AreEqual(100, value);
            }
            finally
            {
                SSOSettingsManager.DeleteApp(AppName);
            }
        }