Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/7.0.0 #126

Merged
merged 14 commits into from
Oct 12, 2023
Merged

Release/7.0.0 #126

merged 14 commits into from
Oct 12, 2023

Conversation

richardszalay
Copy link
Owner

No description provided.

* `WithJsonContent<T>(T value, JsonSerializerOptions? options = null)` -
  serialize the input and then match on that exact string content in the
  request
* `WithJsonContent<T>(Func<T, bool> value, JsonSerializerOptions?
  options = null)` - deserialize the request content and then match
  the result against the provided predicate.
  * `WithXmlContent<T>(T value, XmlSerializer? options = null,
XmlWriterSettings? settings = null)` - serialize the input and then
match on that exact string content in the request
  * `WithXmlContent<T>(Func<T, bool> value, XmlSerializer? options =
    null)` - deserialize the request content and then match the result
    against the provided predicate.
1. Update to latest c#
2. Enable nullable and resolve all warnings
3. Switch to file-level namespace declarations
4. Add an editorconfig and apply conventions across solution
This is a behavior-breaking change as previously match failures returns
a NotFound / 404 result, but now the default behavior throws an
exception.

The previous behavior can be reverted by using
`mockHandler.Fallback.RespondMatchSummary`
@richardszalay richardszalay merged commit d681d73 into master Oct 12, 2023
@richardszalay richardszalay deleted the release/7.0.0 branch October 12, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant