Class ParameterChecker
Inherited Members
Namespace: Xareus.Scenarios.Utilities
Assembly: Xareus.Scenarios.dll
Syntax
public static class ParameterChecker
Methods
CheckParameters(object, IDictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Extract the parameters and their values from NameValueListMap. Note that arrays and collections and dictionaries will be empty (not null) if no matching parameter has been found Consider using FunctionManager.SetFunctionParameters instead for an optimized way to set parameters
Declaration
public static void CheckParameters(object obj, IDictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Type | Name | Description |
---|---|---|
object | obj | |
IDictionary<string, Parameter> | parameters | |
IContext | externalContext | |
IContext | scenarioContext | |
IContext | sequenceContext | |
IContext | eventContext |
See Also
CheckParameters(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Extract the parameters and their values from parameters. Note that arrays and collections and dictionaries will be empty (not null) if no matching parameter has been found
Declaration
public static void CheckParameters(object obj, FieldsAndPropertiesContainer fieldsAndProperties, IDictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Type | Name | Description |
---|---|---|
object | obj | |
FieldsAndPropertiesContainer | fieldsAndProperties | The fields and properties to fill |
IDictionary<string, Parameter> | parameters | |
IContext | externalContext | |
IContext | scenarioContext | |
IContext | sequenceContext | |
IContext | eventContext |
CreateContextVariables(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Create context variables from the parameters and their values.
Declaration
public static void CreateContextVariables(object obj, FieldsAndPropertiesContainer fieldsAndProperties, IDictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Type | Name | Description |
---|---|---|
object | obj | |
FieldsAndPropertiesContainer | fieldsAndProperties | |
IDictionary<string, Parameter> | parameters | |
IContext | externalContext | |
IContext | scenarioContext | |
IContext | sequenceContext | |
IContext | eventContext |
GetFieldsAndPropertiesWithConfigurationParameter(Type)
Get the fields and properties of the given type that hold a ConfigurationParameter attribute
Declaration
[Obsolete("Use Xareus.Scenarios.Utilities.GetFieldsAndPropertiesWithAttribute(this Type type, Type attributeType) instead")]
public static FieldsAndPropertiesContainer GetFieldsAndPropertiesWithConfigurationParameter(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to check |
Returns
Type | Description |
---|---|
FieldsAndPropertiesContainer |
GetFieldsAndPropertiesWithContextVariable(Type)
Get the fields and properties of the given type that hold a ContextVariableAttribute or are of the ContextVariable type
Declaration
public static FieldsAndPropertiesContainer GetFieldsAndPropertiesWithContextVariable(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to check |
Returns
Type | Description |
---|---|
FieldsAndPropertiesContainer |
SetParametersFromMembers(Function, object)
Declaration
public static void SetParametersFromMembers(Function function, object instance)
Parameters
Type | Name | Description |
---|---|---|
Function | function | |
object | instance |