Ejemplo n.º 1
0
        /// <summary>Resolves a property from the command line or LTM-alias.</summary>
        /// <param name="propertyName">Name of property to resolve.</param>
        /// <returns>The property value, null if not defined.</returns>
        public static string ResolveProperty(string propertyName)
        {
            string result;

            if (_overriddenProperties == null || !_overriddenProperties.TryGetValue(propertyName, out result))
            {
                result = AstoriaTestProperties.Properties("CommandLine/" + propertyName);
                if (result == null)
                {
                    result = InitString(propertyName);
                }
            }

            return(result);
        }
Ejemplo n.º 2
0
 public static String InitString(String property)
 {
     return(AstoriaTestProperties.Properties("Alias/InitString/" + property));
 }