Interface IMockMatcher
- Namespace
- Kuestenlogik.Bowire.Mock.Matchers
- Assembly
- Kuestenlogik.Bowire.Mock.dll
Plugs the mock server's request-matching strategy. Implementations look at an incoming MockRequest and decide which recorded BowireRecordingStep (if any) should answer it. Phase 1 ships ExactMatcher; Phase 2 adds path and topic matchers.
public interface IMockMatcher
Methods
TryMatch(MockRequest, BowireRecording, out BowireRecordingStep)
Try to pick a recorded step that answers this request.
bool TryMatch(MockRequest request, BowireRecording recording, out BowireRecordingStep matchedStep)
Parameters
requestMockRequestIncoming wire request.
recordingBowireRecordingThe active recording to match against.
matchedStepBowireRecordingStepThe chosen step, if any.
Returns
- bool
trueif a step matched;falseotherwise.