You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ All notable changes to TestableHttpClient will be documented in this file.
4
4
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
5
5
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
-
## [0.8] - Unplanned
7
+
## [0.8] - 2022-11-08
8
8
### Deprecated
9
9
-`TestableHttpMessageHandler.SimulateTimeout` is deprecated, and can be replaced with `RespondWith(Responses.Timeout())`.
10
10
-`TestableHttpMessageHandler.RespondWith(Func<HttpRequestMessage, HttpResponseMessage>)` had been deprecated, it's functionality is replaced by IResponse.
@@ -16,6 +16,7 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
16
16
### Added
17
17
-`CreateClient` now accepts `DelegateHandlers` in order to chain Handlers. The InnerHandler property of each handler is set automatically and the `TestableHttpMessageHandler` is automatically set as the last handler. This is showcased with Polly in the integration tests.
18
18
- Added support for .NET Framework 4.6.2, .NET Framework 4.7 and .NET Framework 4.8 by running the tests against these versions.
19
+
- Added support for .NET 7
19
20
- When validating requests, an `HttpRequestMessageAssertionException` will be thrown when the content of a request is disposed. This typically happens on .NET Framework when the runtime decides to use the older version of System.Net.Http.
20
21
- Added several `Responses`, including `Delayed`, `Timeout`, `Configured`, `Sequenced`, `StatusCode` and `Json`. These responses can now be used inside the `RespondWith`.
21
22
- Added the possibility to set and override the JsonSerializerOptions.
@@ -26,6 +27,7 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
26
27
- The `HttpRequestMessage` is always added to the response, which is now possible, since we no longer allow reusing responses.
27
28
- Added `ConfigureAwait(false)` to all calls, since we now use async/await in the library.
28
29
- The check on request uri is now case insensitive by default, when test url's that are case sensitive set the `ignoreCase` parameter to false.
30
+
- The project has been moved to an organisation, so all the url's have been changed and an icon is added to the NuGet package.
29
31
30
32
## [0.7] - 2022-09-22
31
33
### Changed
@@ -230,6 +232,7 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
230
232
- Automatically build project when pushing changes to github and when creating a pull request
231
233
- Automatically deploy to NuGet when creating a tag in github
Using HttpClient in code that is unit tested is seen as rather difficult, these libraries aims to make it easier to assert the calls that are made via an HttpClient and to make assertions on the HttpResponseMessages.
0 commit comments