Skip to content

Releases: testablehttpclient/TestableHttpClient

TestableHttpClient version 0.11

15 Jun 07:31
9cb37a5
Compare
Choose a tag to compare

This release adds a default value for the `HttpClient.BaseAddress.
Besides that, we removed support for .NET7 and added support .NET8. (But since we still provide .NET6 and .NETStandard support, it will still work on .NET7)

All the details can be found in the changelog or the milestone.

TestableHttpClient version 0.10

03 Dec 22:11
372121c
Compare
Choose a tag to compare

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

25 Nov 18:47
150573d
Compare
Choose a tag to compare

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

08 Nov 21:03
0538b21
Compare
Choose a tag to compare

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

22 Sep 21:13
005854d
Compare
Choose a tag to compare

With version 0.7 TestableHttpClient, we officially added support for .NET 6 and unofficial for .NET 7. All the details can be found in the
changelog or the milestone.

TestableHttpClient version 0.6

24 Feb 20:40
d01c093
Compare
Choose a tag to compare

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 and ShouldNotHaveMadeRequestsTo have been deprecated, use ShouldHaveMadeRequests(0) and ShouldHaveMadeRequestsTo(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

25 Jun 17:44
d36ea8f
Compare
Choose a tag to compare

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 to WithFilter
  • The method Times has been replaced by overloads on the With* 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

10 May 15:40
71432f7
Compare
Choose a tag to compare

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

26 May 19:42
0380045
Compare
Choose a tag to compare

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() and CreateClient(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

24 May 12:52
36d77bd
Compare
Choose a tag to compare

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.