Class WorkResponseMatchExtensions
Adds a collection of additional NRule DSL methods specific to matching JobWorkResponses.
public static class WorkResponseMatchExtensions
- Inheritance
-
objectWorkResponseMatchExtensions
Methods
WithStatus(Matcher<WorkResponse>, WorkResponseStatus)
Match against a particular WorkResponseStatus.
public static Matcher<WorkResponse> WithStatus(this Matcher<WorkResponse> matcher, WorkResponseStatus jobResultStatus)
Parameters
matcher
Matcher<WorkResponse>jobResultStatus
WorkResponseStatusWorkResponseStatus to match against.
Returns
WithStatus<T>(Matcher<WorkResponse<T>>, WorkResponseStatus)
public static Matcher<WorkResponse<T>> WithStatus<T>(this Matcher<WorkResponse<T>> matcher, WorkResponseStatus jobResultStatus)
Parameters
matcher
Matcher<WorkResponse<T>>jobResultStatus
WorkResponseStatus
Returns
- Matcher<WorkResponse<T>>
Type Parameters
T