-
-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: Testably/Mockolate
base: v1.2.0
head repository: Testably/Mockolate
compare: v1.3.0
- 7 commits
- 47 files changed
- 2 contributors
Commits on Feb 2, 2026
-
chore: Bump SharpCompress from 0.44.3 to 0.44.5 (#455)
--- updated-dependencies: - dependency-name: SharpCompress dependency-version: 0.44.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c1fab83 - Browse repository at this point
Copy the full SHA c1fab83View commit details
Commits on Feb 6, 2026
-
feat: add
WithHeadersparameter match (#459)This PR adds a new `WithHeaders` parameter matcher for HTTP content validation in Mockolate. The feature allows users to specify HTTP header expectations when mocking HTTP client calls. ### Key Changes: - Added `HttpHeaderValue` class to represent HTTP header values with extensible matching logic - Introduced `IHttpHeaderParameter<TParameter>` interface to enable header expectations on HTTP content parameters - Created comprehensive test coverage for single and multiple header matching with case sensitivity rules
Configuration menu - View commit details
-
Copy full SHA for c9b806b - Browse repository at this point
Copy the full SHA c9b806bView commit details -
feat: support multiple parameters in
WithQuery(#460)This PR adds support for multiple query parameters in the `WithQuery` method, enhancing the URI matching capabilities in Mockolate's web testing utilities. The previous implementation only supported pattern matching against the entire query string, while the new implementation allows precise matching of individual query parameters. ### Key Changes: - Introduced `HttpQueryParameterValue` class to represent query parameter values - Added multiple overloads of `WithQuery` to support single parameters, multiple parameters, and query strings - Reorganized tests into separate files per method for better organization
Configuration menu - View commit details
-
Copy full SHA for 9798852 - Browse repository at this point
Copy the full SHA 9798852View commit details -
feat: add parameter for
HttpRequestMessage(#461)This PR adds support for matching `HttpRequestMessage` parameters in Mockolate’s web helpers, and wires up HttpClient mocking to allow `SendAsync` setups using the new request matcher. ### Key Changes: - Introduced `It.IsHttpRequestMessage(HttpMethod? method = null)` fluent parameter with URI/content/header sub-matchers. - Added `HttpClientExtensions.SendAsync(IParameter<HttpRequestMessage>)` setup helper targeting `HttpMessageHandler.SendAsync`. - Added/updated unit tests and API snapshot expectations for the new API surface.
Configuration menu - View commit details
-
Copy full SHA for 2ae9bf8 - Browse repository at this point
Copy the full SHA 2ae9bf8View commit details
Commits on Feb 7, 2026
-
feat!: add support for URL-encoded form data content (#462)
This pull request refactors and simplifies the HTTP content parameter matching APIs in the `Mockolate.Web` namespace. It removes specialized interfaces and classes for string and binary content, consolidates their functionality into a more general `IHttpContentParameter` interface, and introduces support for form data content. The changes improve API consistency and extensibility for matching HTTP request content in tests. **API Refactoring and Simplification:** * Removed the specialized `IsBinaryContent` and `IsStringContent` extension methods, interfaces, and implementations, consolidating their functionality into the new, unified `IHttpContentParameter` interface. This includes removing `IBinaryContentParameter`, `IStringContentParameter`, and related code, and updating the API surface accordingly. * Updated the `IHttpRequestMessageParameter` interface and its implementation to remove `WhoseStringContentIs` and `WhoseBinaryContentIs` methods, replacing them with a more flexible `WhoseContentIs` method that optionally takes a media type and configuration action. **New Features:** * Added support for matching HTTP form data parameters by introducing the `HttpFormDataValue` class and related API methods, such as `WithFormData`, to the `IHttpContentParameter` interface. **Other Improvements:** * Improved string comparison in `HttpQueryParameterValue.Matches` to use `StringComparison.Ordinal` for consistency and correctness. * Minor code organization improvements, such as reordering fields in `HttpRequestMessageParameter` for clarity. **Test and Documentation Updates:** * Updated the expected API surface in `Mockolate_net10.0.txt` to reflect the new interface structure and removed/added methods and classes. These changes make the HTTP content matching API easier to use and extend, while reducing duplication and improving maintainability.
Configuration menu - View commit details
-
Copy full SHA for 1787c7e - Browse repository at this point
Copy the full SHA 1787c7eView commit details -
docs: add documentation for HTTP form data (#463)
Updates HttpClient matching documentation to cover generic content matching, richer query matching, and adds form-data (URL-encoded) content matching guidance. ### Key Changes: - Replaced `It.IsStringContent(...)` examples with `It.IsHttpContent(...)` and new `WithString...` matchers. - Expanded `.WithQuery(...)` docs to include key/value pair matching and raw query string matching. - Added docs for URL-encoded form-data matching (`WithFormData(...)`) in HttpClient examples.
Configuration menu - View commit details
-
Copy full SHA for ec1859d - Browse repository at this point
Copy the full SHA ec1859dView commit details -
coverage: add missing
HttpClienttests (#464)Adds missing test coverage around `HttpClient`/web matchers, especially for repeated matcher calls and additional edge cases. ## Key Changes: - Added new theory-based test cases for repeated `.WithQuery(...)` / `.WithHeaders(...)` usage and additional negative cases. - Added a monitoring test for `It.IsHttpRequestMessage().Monitor(...)` and a guard-rail test for `HttpClient` setup without a mockable handler. - Simplified query/form parsing by removing a redundant length check.
Configuration menu - View commit details
-
Copy full SHA for bdaa629 - Browse repository at this point
Copy the full SHA bdaa629View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.2.0...v1.3.0