Table of Contents

Class FactConstraint<TFact>

Namespace
NRules.Testing
Assembly
NRules.Testing.dll

Represents a strongly-typed constraint on facts matched by a rule.

public abstract class FactConstraint<TFact> : FactConstraint where TFact : notnull

Type Parameters

TFact
Inheritance
FactConstraint<TFact>
Inherited Members

Methods

Callback(Action<TFact>)

Called with the corresponding fact when all rule firing fact constraints are satisfied.

public FactConstraint<TFact> Callback(Action<TFact> callback)

Parameters

callback Action<TFact>

The delegate to call.

Returns

FactConstraint<TFact>