Method | Description | |
---|---|---|
GenerateContentRestriction ( |
Build a RestrictionData as single ContentRestriction
|
|
GenerateRuleProperties ( string name ) : |
Generate rule properties value.
|
|
GenerateValidRestrictData ( ITestSite site, TableType tableType ) : byte[] |
Generate a sample valid RestrictData structure.
|
|
GenerateValidRuleData ( ActionTypes actionType, TestRuleDataType ruleDataType, int ruleSequence, RuleState ruleState, IActionData actionData, |
Generate a sample valid RuleData structure.
|
|
ReadTaggedProperty ( byte buffer ) : |
Read a TaggedPropertyValue structure from buffer.
|
|
ReadValueByType ( ushort type, byte buffer ) : byte[] |
Read a value from buffer for special Type.
|
Method | Description | |
---|---|---|
AddRuleAction ( IList |
Add rule action to the properties list
|
|
AddRuleCondition ( IList |
Add ruleCondition to the properties list
|
|
GenerateRuleAction ( ActionTypes actionType, Count bytesCount, IActionData actionDataBufferValue, uint actionFlavor, uint actionFlag ) : |
Generate a sample rule action.
|
public static GenerateContentRestriction ( |
||
taggedPValue | A TaggedPropertyValue of this restriction | |
return | byte[] |
public static GenerateRuleProperties ( string name ) : |
||
name | string | Rule name. |
return |
public static GenerateValidRestrictData ( ITestSite site, TableType tableType ) : byte[] | ||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
tableType | TableType | Identify the table type |
return | byte[] |
public static GenerateValidRuleData ( ActionTypes actionType, TestRuleDataType ruleDataType, int ruleSequence, RuleState ruleState, IActionData actionData, |
||
actionType | ActionTypes | ActionType in a rule |
ruleDataType | TestRuleDataType | Rule data value. |
ruleSequence | int | Rule sequence in PidTagRuleSequence of the RuleData |
ruleState | RuleState | Specifies value of PidTagRuleState of the RuleData |
actionData | IActionData | The actionData needed to construct the RuleData |
ruleProperties | Rule properties structure. | |
return |
public static ReadTaggedProperty ( byte buffer ) : |
||
buffer | byte | Buffer contain TaggedPropertyValue instance |
return |
public static ReadValueByType ( ushort type, byte buffer ) : byte[] | ||
type | ushort | The Type of value |
buffer | byte | Buffer contains value |
return | byte[] |