Conversation
- `Within` and `WithCancellation` - verification of method setups - `HttpClient` return extensions
There was a problem hiding this comment.
Pull request overview
Updates Mockolate’s user-facing documentation to cover newly added verification waiting options, setup-specific verification, and HttpClient convenience return helpers, aligning README and Docs pages with the latest API surface.
Changes:
- Document
Within(TimeSpan)andWithCancellation(CancellationToken)for waiting on verifications. - Add documentation for verifying invocations of a specific method setup via
InvokedSetup(setup). - Document
HttpClient.ReturnsAsync(HttpStatusCode, ...)overloads for simplified response setup.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| README.md | Adds docs for verification waiting (Within/WithCancellation), setup verification (InvokedSetup), and HttpClient .ReturnsAsync overload examples. |
| Docs/pages/special-types/01-httpclient.md | Adds a “Return Message” section documenting .ReturnsAsync(HttpStatusCode, ...) overloads with examples. |
| Docs/pages/04-verify-interactions.md | Adds docs for Within/WithCancellation and for verifying specific setups via InvokedSetup. |
🚀 Benchmark ResultsDetails
|
|
|
This is addressed in release v1.5.0. |



Updates Mockolate’s user-facing documentation to cover newly added verification waiting options, setup-specific verification, and
HttpClientconvenience return helpers, aligning README and Docs pages with the latest API surface.Changes:
Within(TimeSpan)andWithCancellation(CancellationToken)for waiting on verificationsfeat: add Within and WithCancellation to verification result #496
InvokedSetup(setup)feat: allow verifying method setup calls #493
HttpClient.ReturnsAsync(HttpStatusCode, ...)overloads for simplified response setupfeat: simplify specifying the return value of
HttpClientsetup methods #497