Fluent.Client.AwesomeAssertions
1.0.1
See the version list below for details.
dotnet add package Fluent.Client.AwesomeAssertions --version 1.0.1
NuGet\Install-Package Fluent.Client.AwesomeAssertions -Version 1.0.1
<PackageReference Include="Fluent.Client.AwesomeAssertions" Version="1.0.1" />
<PackageVersion Include="Fluent.Client.AwesomeAssertions" Version="1.0.1" />
<PackageReference Include="Fluent.Client.AwesomeAssertions" />
paket add Fluent.Client.AwesomeAssertions --version 1.0.1
#r "nuget: Fluent.Client.AwesomeAssertions, 1.0.1"
#:package Fluent.Client.AwesomeAssertions@1.0.1
#addin nuget:?package=Fluent.Client.AwesomeAssertions&version=1.0.1
#tool nuget:?package=Fluent.Client.AwesomeAssertions&version=1.0.1
Fluent HttpClient AwesomeAssertions for testing .NET apps
Created in Poland by Leszek Pomianowski and open-source community.
Fluent HttpClient AwesomeAssertions provides a set of fluent assertions for Task<HttpResponseMessage>.
Note
Fluent.Clientis optional. You can use this library with standardHttpClient.
Getting started
You can add it to your project using .NET CLI:
dotnet add package Fluent.Client.AwesomeAssertions
How to use
1. Assert success
You can assert that a request was successful (2xx status code).
Standard HttpClient
await client
.PostAsync("/api/users", content)
.Should().Succeed();
Fluent.Client
await client
.Post("/api/users", new { Name = "John" })
.Should().Succeed();
2. Assert specific status code
You can assert that a request returned a specific status code.
With Fluent.Client
await client
.Delete("/api/users/123")
.Should().HaveStatusCode(HttpStatusCode.NoContent);
3. Assert failure
You can assert that a request failed (non-2xx status code).
With Fluent.Client
await client
.Get("/api/unknown")
.Should().Fail();
4. Assert body content
You can assert on the deserialized body content.
With Fluent.Client
await client
.Authorize(token: "abc123")
.Get("/api/users/1")
.Should()
.Satisfy<User>(user =>
{
user.Name.Should().Be("John");
user.Id.Should().Be("1");
});
Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
License
Fluent HttpClient AwesomeAssertions is free and open source software licensed under MIT License. You can use it in private and commercial projects. Keep in mind that you must include a copy of the license in your project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 is compatible. |
-
.NETFramework 4.7.2
- AwesomeAssertions (>= 9.0.0)
- System.Text.Json (>= 6.0.11)
-
.NETFramework 4.8.1
- AwesomeAssertions (>= 9.0.0)
- System.Text.Json (>= 6.0.11)
-
net10.0
- AwesomeAssertions (>= 9.0.0)
-
net8.0
- AwesomeAssertions (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 219 | 3/5/2026 |
| 1.0.2 | 197 | 2/6/2026 |
| 1.0.1 | 150 | 1/10/2026 |
| 1.0.0 | 118 | 1/9/2026 |
| 1.0.0-preview.1 | 107 | 1/9/2026 |