Class MockVerification

Namespace
Kuestenlogik.Bowire.Mock.Management
Assembly
Kuestenlogik.Bowire.Mock.dll

A verification query against a mock's request journal (#409) — the mock analog of WireMock's verify(...) / findAll(...). Reuses the same predicate vocabulary as the request matcher (BowireStepMatch): path regex/glob + query / header / cookie predicates, plus an optional method and path, and a count expectation.

public sealed class MockVerification
Inheritance
MockVerification
Inherited Members

Remarks

Body predicates are not evaluated here — the journal doesn't retain request bodies — so a verification carrying match.body won't match anything.

Constructors

MockVerification()

public MockVerification()

Properties

AtLeast

Require at least this many matching requests.

[JsonPropertyName("atLeast")]
public int? AtLeast { get; init; }

Property Value

int?

AtMost

Require at most this many matching requests.

[JsonPropertyName("atMost")]
public int? AtMost { get; init; }

Property Value

int?

Exactly

Require exactly this many matching requests.

[JsonPropertyName("exactly")]
public int? Exactly { get; init; }

Property Value

int?

Match

Path pattern + query/header/cookie predicates (same shape as a stub's match).

[JsonPropertyName("match")]
public BowireStepMatch? Match { get; init; }

Property Value

BowireStepMatch

Method

HTTP method to require (case-insensitive). Null = any.

[JsonPropertyName("method")]
public string? Method { get; init; }

Property Value

string

Path

Exact request path to require. Ignored when match.pathRegex/pathGlob is set.

[JsonPropertyName("path")]
public string? Path { get; init; }

Property Value

string