RestAssured.Net 2.2.2

.NET 6.0 .NET Core 3.1
dotnet add package RestAssured.Net --version 2.2.2
NuGet\Install-Package RestAssured.Net -Version 2.2.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RestAssured.Net" Version="2.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RestAssured.Net --version 2.2.2
#r "nuget: RestAssured.Net, 2.2.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install RestAssured.Net as a Cake Addin
#addin nuget:?package=RestAssured.Net&version=2.2.2

// Install RestAssured.Net as a Cake Tool
#tool nuget:?package=RestAssured.Net&version=2.2.2

RestAssured.NET

github-actions-ci Nuget Nuget

This is a C# .NET version of the original REST Assured.

With RestAssured.Net, writing tests for your HTTP APIs is as simple as

using static RestAssured.Dsl; // using static RestAssuredNet.RestAssuredNet for versions 1.x.x

[Test]
public void DemonstrateRestAssuredNetEaseOfUse()
{
    Given()
    .When()
    .Get("http://api.zippopotam.us/us/90210")
    .Then()
    .StatusCode(200)
    .And()
    .Body("$.places[0].state", NHamcrest.Is.EqualTo("California"));
}

All features of the library are described and demonstrated in the RestAssured.Net Usage Guide.

Want to contribute?

I'm mostly looking for people who want to give the library a spin and let me know what they think, what issues they found and what they're still missing.

Feel free to submit an issue on this repo if you see any room for improvement.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on RestAssured.Net:

Repository Stars
mehdihadeli/ecommerce-microservices
🛍️ A practical microservices, built with .Net 7, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
Version Downloads Last updated
2.2.2 56 1/31/2023
2.2.1 497 1/10/2023
2.2.0 126 12/31/2022
2.1.0 177 11/30/2022
2.0.0 463 11/20/2022
1.2.0 167 11/17/2022
1.2.0-alpha 51 11/15/2022
1.1.1 194 11/12/2022
1.0.0 303 11/3/2022