Skip to content

v5.9.1#100

Merged
chullybun merged 1 commit intomainfrom
v5.9.1
Feb 11, 2026
Merged

v5.9.1#100
chullybun merged 1 commit intomainfrom
v5.9.1

Conversation

@chullybun
Copy link
Collaborator

  • Fixed: The MockHttpClientRequest now caches the response content internally, and creates a new HttpContent instance for each request to ensure that the content can be read multiple times across multiple requests (where applicable); avoids potential object disposed error.
  • Fixed: The MockHttpClient.Reset() was incorrectly resetting the MockHttpClient instance to its default state, but was not resetting the internal request configuration which is used to determine the response. This has now been corrected to reset the internal mocked state only.
  • Fixed: The ApiTesterBase has had UseSolutionRelativeContentRoot added to correct the error where the underlying WebApplicationFactory was not correctly finding the appsettings.json file from the originating solution.

- *Fixed:* The `MockHttpClientRequest` now caches the response content internally, and creates a new `HttpContent` instance for each request to ensure that the content can be read multiple times across multiple requests (where applicable); avoids potential object disposed error.
- *Fixed:* The `MockHttpClient.Reset()` was incorrectly resetting the `MockHttpClient` instance to its default state, but was not resetting the internal request configuration which is used to determine the response. This has now been corrected to reset the internal mocked state only.
- *Fixed:* The `ApiTesterBase` has had `UseSolutionRelativeContentRoot` added to correct the error where the underlying `WebApplicationFactory` was not correctly finding the `appsettings.json` file from the originating solution.
@chullybun chullybun merged commit 715e57c into main Feb 11, 2026
4 checks passed
@chullybun chullybun deleted the v5.9.1 branch February 11, 2026 20:07
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