Class RulesTestHarness
Rules under test compiled into a rules engine session along with the means to verify rules firing.
public class RulesTestHarness
- Inheritance
-
RulesTestHarness
- Inherited Members
Constructors
RulesTestHarness(IRulesTestSetup)
Initializes a new instance of the RulesTestHarness class.
public RulesTestHarness(IRulesTestSetup setup)
Parameters
setup
IRulesTestSetupRules test setup information.
Properties
Recorder
Gets the rule invocation recorder to control and inspect rules firing.
public IRuleInvocationRecorder Recorder { get; }
Property Value
RuleSet
Gets the rules under test.
public IRulesUnderTest RuleSet { get; }
Property Value
Session
Gets the current rules engine session.
public ISession Session { get; }
Property Value
Remarks
Lazily created
Methods
GetRulesVerification()
Creates a rules verification builder to check rules firing expectations.
public IRulesVerification GetRulesVerification()
Returns
- IRulesVerification
Instance of the verification builder.