Skip to content

Added possibilty to obtain HttpStatusCode from IOperationResult.ContextData #8481

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

N-Olbert
Copy link
Contributor

@N-Olbert N-Olbert commented Jul 31, 2025

Summary of the changes (Less than 80 chars)

  • Introduced IOperationRequestFactory.WithHttpStatusCodeCapture(string key = "HttpStatusCode").
  • HttpStatusCode is captured by the specified key.
  • The method generation is optional (setting: "GenerateWithHttpStatusCodeCaptureMethod")

Closes #4759

…xtData

Test: Execute_StarWarsGetHero_ShouldCaptureExpectedStatusCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide HttpStatusCode in IOperationResult
1 participant