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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
10
10
-`TestableHttpMessageHandler.RespondWith(Func<HttpRequestMessage, HttpResponseMessage>)` had been deprecated, it's functionality is replaced by IResponse.
11
11
-`RespondWith(this TestableHttpMessageHandler, HttpResponseMessage)` has been deprecated, the response is modified with every call, so it doesn't work reliably and is different from how HttpClientHandler works, which creates a HttpResponseMessage for every request.
12
12
-`HttpResponseMessageBuilder` and `RespondWith(this TestableHttpMessageHandler, HttpResponseMessageBuilder)` has been deprecated, it's functionality can be replaced with ConfiguredResponse or a custom IResponse.
13
+
-`HttpRequestMessageExtensions` and `HttpResponseMessageExtensions` were introduced as extensions for easier assertion. However, these types are intended for internal use and will be made internal next release.
14
+
- TestableHttpClient.NFluent is deprecated and will be removed in the next version.
13
15
14
16
### Added
15
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.
Copy file name to clipboardExpand all lines: src/TestableHttpClient.NFluent/README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# TestableHttpClient.NFluent
2
2
3
+
## Status
4
+
The NFluent extensions for TestableHttpClient are being deprecated and will no longer ship with the next version of the library.
5
+
6
+
---
7
+
3
8
In integration tests, asserting HttpResponseMessages can be a real challenge, especially since error messages are sometimes not very clear. NFluent is known for giving clear error messages.
4
9
`TestableHttpClient.NFluent` is designed to make it easier to check `HttpResponseMessage`s and `TestableHttpClient`s and give clear error messages.
#pragma warning disable CS0618// Type or member is obsolete
221
234
returncheck.WithFilter(x =>x.HasRequestHeader(headerName,headerValue),expectedNumberOfRequests,$"request header '{headerName}' and value '{headerValue}'");
235
+
#pragma warning restore CS0618// Type or member is obsolete
#pragma warning disable CS0618// Type or member is obsolete
296
313
returncheck.WithFilter(x =>x.HasContentHeader(headerName,headerValue),expectedNumberOfRequests,$"content header '{headerName}' and value '{headerValue}'");
314
+
#pragma warning restore CS0618// Type or member is obsolete
#pragma warning disable CS0618// Type or member is obsolete
367
388
returncheck.WithFilter(x =>x.HasRequestHeader(headerName,headerValue)||x.HasContentHeader(headerName,headerValue),expectedNumberOfRequests,$"header '{headerName}' and value '{headerValue}'");
389
+
#pragma warning restore CS0618// Type or member is obsolete
0 commit comments