Namespace Kuestenlogik.Bowire.Mock

Classes

BowireMockApplicationBuilderExtensions

ASP.NET pipeline extensions for mounting a Bowire mock replay handler. Intended for test fixtures and any scenario where the mock coexists with the real service on the same host.

MockAuthGate

#562: the mock's optional auth gate. Holds a mutable auth-requirement — the whole reference is swapped to toggle auth live (mirroring the Faults hot-swap) so the gate always reads a consistent snapshot — and evaluates each request: when auth is required, a request that presents no credential (or the wrong one) is rejected with 401 before replay.

MockHandler

Per-pipeline handler that owns the currently-active recording and replays matching unary steps. Created once by UseBowireMock and shared across every request on the pipeline — the recording reference is swapped atomically by the file watcher on hot-reload.

MockOptions

Tunables for MapBowireMock in embedded (middleware) mode.

MockServer

Standalone mock host used by the bowire mock CLI subcommand. Spins up a minimal Kestrel pipeline with UseBowireMock mounted at the root and no fallback service behind it, so unmatched requests return 404 instead of falling through.

MockServerOptions

Tunables for the standalone MockServer used by the bowire mock CLI subcommand.