Releases: testablehttpclient/TestableHttpClient
TestableHttpClient version 0.11
TestableHttpClient version 0.10
After little more than a week, here is another update of TestableHttpClient. The most important changes include:
- A more complete URI Pattern matching mechanism that is used throughout the library
- The possibility to reset the TestableHttpMessageHandler
All the details can be found in the changelog or the milestone.
TestableHttpClient version 0.9
This release brings response routing functionality, which makes it possible to change responses based on the URL.
We also removed support for .NET Core 3.1, moved TestableHttpClient.NFluent to it's own repository and made several public classes internal.
All the details can be found in the changelog or the milestone.
TestableHttpClient version 0.8
With .NET 7 just released, version 0.8 adds support for .NET 7, but also for older .NET Framework versions, besides that the following changes were made:
- The project was transfered to a separate organisation "testablehttpclient", which should make the project more visible.
- Responses can now be configured in an easier way, more similar to minamal api's from ASP.NET Core. This opens up the possibility for sequenced and delayed responses.
- Json responses and assertions are not more configurable.
All the details can be found in the changelog or the milestone.
TestableHttpClient version 0.7
TestableHttpClient version 0.6
Finally we are releasing version 0.6 of TestableHttpClient, we made several changes and you can find the details in the changelog or the milestone.
Here are not most notable functional changes:
- we introduced better support for query parameters. You no longer have to url encode them in the request url, but can assert them using the
WithQueryString
method. ShouldNotHaveMadeRequests
andShouldNotHaveMadeRequestsTo
have been deprecated, useShouldHaveMadeRequests(0)
andShouldHaveMadeRequestsTo(string, 0)
instead.
Besides that we enabled dependabot, so that our dependencies are updated automatically, we replaced GitVersion with nbgv, because of issues on Ubuntu 20.04.
We now officially support .NET Core 2.1, .NET Core 3.0 and .NET 5. This support is tested via unit tests and integrationtests, which run for all supported .NET versions. If there is anything that isn't compatible with any of these versions, or you want support for a specific .NET version, please raise an issue.
TestableHttpClient version 0.5
This release introduces an NFluent interface for verifying calls made to the TestableHttpMessageHandler
, the API for NFluent is mostly the same as originally.
We introduced two breaking changes:
- The method
With
has been renamed toWithFilter
- The method
Times
has been replaced by overloads on theWith*
methods, where you now can specify the number of requests that should have been made. This makes it possible to test that no requests are made.
For more details, you can look at the Changelog or the Milestone
TestableHttpClient version 0.2
Introduction of NFluent checks for HttpResponseMessages in the TestableHttpClient.NFluent package.
The following checks are introduced:
- HasHttpStatusCode
- HasReasonPhrase
- HasHttpVersion
- HasResponseHeader
- HasContent
- HasContentHeader
Note that we changed the name of the tag for this release to be consistent. Therefore the history of tags is out of order.
TestableHttpClient version 0.4
We are very happy to announce yet another release. This release could basically be considered as a release candidate for version 1.0, since all the functionality that we had envisioned for this library is included in this release. Now is the time to test this library out and report issues, inconsistencies and annoyances.
Changelog for this release:
- Removed deprecated methods
- Added
CreateClient()
andCreateClient(Action<HttpClient>)
as extension methods to the TestableHttpClient. - Updated the integration tests for demonstrating how IHttpClientFactory is used.
More details can be found on the milestone page for this release.
TestableHttpClient version 0.3
We are happy to announce another release. This release contains a simple bugfix to improve the error messages of the NFluent checks, several breaking changes to make the API consistent and several improvements in the repository.
For a complete list of change, see the milestone for version 0.3.
Breaking changes
This release contains several breaking changes as described in #40. All old methods are marked with the ObsoleteAttribute
and will generate a compiler error with a message telling which method to use instead.