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

v4.2.0 #70

Merged
merged 6 commits into from
Mar 7, 2024
Merged

v4.2.0 #70

merged 6 commits into from
Mar 7, 2024

Conversation

chullybun
Copy link
Collaborator

  • Enhancement: Any configuration specified as part of registering the HttpClient services from a Dependency Injection (DI) perspective is ignored by default when creating an HttpClient using the MockHttpClientFactory. This default behavior is intended to potentially minimize any side-effect behavior that may occur that is not intended for the unit testing. See README for more details on capabilities introduced; highlights are:
    • New MockHttpClient.WithConfigurations method indicates that the HttpMessageHandler and HttpClient configurations are to be used.
    • New MockHttpClient.WithoutMocking method indicates that the underlying HttpClient is not to be mocked; i.e. will result in an actual/real HTTP request to the specified endpoint. This will allow the mixing of real and mocked HTTP requests within the same test.

@chullybun chullybun merged commit 72a4ab5 into main Mar 7, 2024
2 checks passed
@chullybun chullybun deleted the v4.2.0 branch March 7, 2024 14:33
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