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

request MockRequest

Incoming wire request.

recording BowireRecording

The active recording to match against.

matchedStep BowireRecordingStep

The chosen step, if any.

Returns

bool

true if a step matched; false otherwise.