Class Matcher<T>
Used to provide NRules matching criteria for JobFlow objects.
public class Matcher<T> : Matcher
Type Parameters
T
- Inheritance
-
Matcher<T>
- Extension Methods
Methods
Match(params Expression<Func<T, bool>>[])
Allows specifying any number of boolean Expression that will match against the respective entity object.
public Matcher<T> Match(params Expression<Func<T, bool>>[] expressions)
Parameters
expressions
Expression<Func<T, bool>>[]
Returns
- Matcher<T>
Remarks
This is essentially a convenience method to creating matching criteria against JobFlow artifacts. For example:
When().HaveDocument(d => d.WithConditions(c => c.LastName == "Jones"))