Exemplo n.º 1
0
        public static T ParameterValue <T>(this TestApplication application, ApplicationParams applicationParams, T defaultValue)
        {
            var parameterValue = application.ParameterValue <T>(applicationParams.ToString());

            return(Equals(default(T), parameterValue) ? defaultValue : parameterValue);
        }
Exemplo n.º 2
0
        public static void SetParameterValue(this TestApplication application, ApplicationParams applicationParams, string value)
        {
            var dictionary = ((StringDictionary)application.GetFieldValue("attributes"));

            dictionary[applicationParams.ToString()] = value;
        }