Faking External Dependencies at the Boundary: WireMock.Net, Fake SMTP, FakeTimeProvider and Failure Scenarios
Fake external services at the HTTP and SMTP boundary rather than by mocking your own client: WireMock.Net for the payment and shipping APIs, Mailpit for email, FakeTimeProvider for time. With real runs we show verifying the outgoing request, retry, timeout and circuit breaker really kicking in, POST retries against a slow provider turning into four payments, and a global fake clock freezing Polly.
14 Nov 2026
·
11 min
·
2