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

Allow to easily deserialize responses in tests #441

Open
Kaliumhexacyanoferrat opened this issue Jan 5, 2024 · 0 comments
Open

Allow to easily deserialize responses in tests #441

Kaliumhexacyanoferrat opened this issue Jan 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

As a developer of a test method using the GenHTTP.Testing module, I would like to easily deserialize the result of a request into a known type, so that I can quickly verify my assumptions.

Example

var result = respone.GetContentAsync<MyClass>();

Acceptance criteria

  • The method throws a meaningful exception if the response cannot be parsed
  • The method uses the correct deserializer for the specified Content-Type of the response (so it works for XML for example) and falls back to JSON
  • The functionality is documented on the website
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added the enhancement New feature or request label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant