Class CompositeLeftHandSideExtensions
Provide additional matching methods that expand upon the basic methods provided in LeftHandSideExtensions.
public static class CompositeLeftHandSideExtensions
- Inheritance
-
CompositeLeftHandSideExtensions
Methods
HaveCompleteJob<TRule>(LeftHandExpression<TRule>, Expression<Func<JobModel>>, string, WorkResponseStatus, Action<Matcher<JobModel>>)
public static LeftHandExpression<TRule> HaveCompleteJob<TRule>(this LeftHandExpression<TRule> leftHandSideExpression, Expression<Func<JobModel>> alias, string name, WorkResponseStatus status, Action<Matcher<JobModel>> expression = null) where TRule : JobFlowRule
Parameters
leftHandSideExpression
LeftHandExpression<TRule>alias
Expression<Func<JobModel>>name
stringstatus
WorkResponseStatusexpression
Action<Matcher<JobModel>>
Returns
- LeftHandExpression<TRule>
Type Parameters
TRule
HaveCompleteJob<TRule>(LeftHandExpression<TRule>, Expression<Func<JobModel>>, string, Action<Matcher<JobModel>>)
public static LeftHandExpression<TRule> HaveCompleteJob<TRule>(this LeftHandExpression<TRule> leftHandSideExpression, Expression<Func<JobModel>> alias, string name, Action<Matcher<JobModel>> expression = null) where TRule : JobFlowRule
Parameters
leftHandSideExpression
LeftHandExpression<TRule>alias
Expression<Func<JobModel>>name
stringexpression
Action<Matcher<JobModel>>
Returns
- LeftHandExpression<TRule>
Type Parameters
TRule
HaveCompleteJob<TRule>(LeftHandExpression<TRule>, string, WorkResponseStatus, Action<Matcher<JobModel>>)
public static LeftHandExpression<TRule> HaveCompleteJob<TRule>(this LeftHandExpression<TRule> leftHandSideExpression, string name, WorkResponseStatus status, Action<Matcher<JobModel>> expression = null) where TRule : JobFlowRule
Parameters
leftHandSideExpression
LeftHandExpression<TRule>name
stringstatus
WorkResponseStatusexpression
Action<Matcher<JobModel>>
Returns
- LeftHandExpression<TRule>
Type Parameters
TRule
HaveCompleteJob<TRule>(LeftHandExpression<TRule>, string, Action<Matcher<JobModel>>)
public static LeftHandExpression<TRule> HaveCompleteJob<TRule>(this LeftHandExpression<TRule> leftHandSideExpression, string name, Action<Matcher<JobModel>> expression = null) where TRule : JobFlowRule
Parameters
leftHandSideExpression
LeftHandExpression<TRule>name
stringexpression
Action<Matcher<JobModel>>
Returns
- LeftHandExpression<TRule>
Type Parameters
TRule
HaveDocument<D>(LeftHandExpression<JobFlowRule<D>>, Expression<Func<Document<D>>>, params Expression<Func<Document<D>, bool>>[])
public static LeftHandExpression<JobFlowRule<D>> HaveDocument<D>(this LeftHandExpression<JobFlowRule<D>> leftHandSideExpression, Expression<Func<Document<D>>> alias, params Expression<Func<Document<D>, bool>>[] expressions)
Parameters
leftHandSideExpression
LeftHandExpression<JobFlowRule<D>>alias
Expression<Func<Document<D>>>expressions
Expression<Func<Document<D>, bool>>[]
Returns
Type Parameters
D
HaveJob<TRule>(LeftHandExpression<TRule>, string, Action<Matcher<JobModel>>)
public static LeftHandExpression<TRule> HaveJob<TRule>(this LeftHandExpression<TRule> leftHandSideExpression, string name, Action<Matcher<JobModel>> expression = null) where TRule : JobFlowRule
Parameters
leftHandSideExpression
LeftHandExpression<TRule>name
stringexpression
Action<Matcher<JobModel>>
Returns
- LeftHandExpression<TRule>
Type Parameters
TRule
HaveWorkResponse<TRule>(LeftHandExpression<TRule>, WorkResponseStatus, Action<Matcher<WorkResponse>>)
public static LeftHandExpression<TRule> HaveWorkResponse<TRule>(this LeftHandExpression<TRule> leftHandSideExpression, WorkResponseStatus status, Action<Matcher<WorkResponse>> expression = null) where TRule : JobFlowRule
Parameters
leftHandSideExpression
LeftHandExpression<TRule>status
WorkResponseStatusexpression
Action<Matcher<WorkResponse>>
Returns
- LeftHandExpression<TRule>
Type Parameters
TRule
IsStart<TRule>(LeftHandExpression<TRule>)
public static LeftHandExpression<TRule> IsStart<TRule>(this LeftHandExpression<TRule> leftHandSideExpression) where TRule : JobFlowRule
Parameters
leftHandSideExpression
LeftHandExpression<TRule>
Returns
- LeftHandExpression<TRule>
Type Parameters
TRule
WithResponse(Matcher<JobModel>, WorkResponseStatus)
public static Matcher<JobModel> WithResponse(this Matcher<JobModel> matcher, WorkResponseStatus status)
Parameters
matcher
Matcher<JobModel>status
WorkResponseStatus