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
Faultshot-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
UseBowireMockand shared across every request on the pipeline — the recording reference is swapped atomically by the file watcher on hot-reload.
- MockOptions
Tunables for
MapBowireMockin embedded (middleware) mode.
- MockServer
Standalone mock host used by the
bowire mockCLI subcommand. Spins up a minimal Kestrel pipeline withUseBowireMockmounted at the root and no fallback service behind it, so unmatched requests return404instead of falling through.
- MockServerOptions
Tunables for the standalone MockServer used by the
bowire mockCLI subcommand.