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); }
public static void SetParameterValue(this TestApplication application, ApplicationParams applicationParams, string value) { var dictionary = ((StringDictionary)application.GetFieldValue("attributes")); dictionary[applicationParams.ToString()] = value; }