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, params WorkResponseStatus[])
Match against a particular WorkResponseStatus.
public static Matcher<WorkResponse> WithStatus(this Matcher<WorkResponse> matcher, WorkResponseStatus jobResultStatus, params WorkResponseStatus[] additionalJobResultStatuses)
Parameters
matcher
Matcher<WorkResponse>jobResultStatus
WorkResponseStatusWorkResponseStatus to match against.
additionalJobResultStatuses
WorkResponseStatus[]
Returns
WithStatus<T>(Matcher<WorkResponse<T>>, WorkResponseStatus, params WorkResponseStatus[])
public static Matcher<WorkResponse<T>> WithStatus<T>(this Matcher<WorkResponse<T>> matcher, WorkResponseStatus jobResultStatus, params WorkResponseStatus[] additionalJobResultStatuses)
Parameters
matcher
Matcher<WorkResponse<T>>jobResultStatus
WorkResponseStatusadditionalJobResultStatuses
WorkResponseStatus[]
Returns
- Matcher<WorkResponse<T>>
Type Parameters
T