RestAssured.Net
2.4.0
.NET 6.0
.NET Core 3.1
dotnet add package RestAssured.Net --version 2.4.0
NuGet\Install-Package RestAssured.Net -Version 2.4.0
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.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RestAssured.Net --version 2.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RestAssured.Net, 2.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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.4.0
// Install RestAssured.Net as a Cake Tool
#tool nuget:?package=RestAssured.Net&version=2.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RestAssured.NET
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.
-
.NETCoreApp 3.1
- Microsoft.AspNetCore.StaticFiles (>= 2.2.0)
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- Newtonsoft.Json (>= 13.0.3)
- Newtonsoft.Json.Schema (>= 3.0.14)
- NHamcrest (>= 3.1.0)
- Stubble.Core (>= 1.10.8)
- System.Text.Encodings.Web (>= 4.7.2)
-
net6.0
- Microsoft.AspNetCore.StaticFiles (>= 2.2.0)
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- Newtonsoft.Json (>= 13.0.3)
- Newtonsoft.Json.Schema (>= 3.0.14)
- NHamcrest (>= 3.1.0)
- Stubble.Core (>= 1.10.8)
- System.Text.Encodings.Web (>= 4.7.2)
-
net7.0
- Microsoft.AspNetCore.StaticFiles (>= 2.2.0)
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- Newtonsoft.Json (>= 13.0.3)
- Newtonsoft.Json.Schema (>= 3.0.14)
- NHamcrest (>= 3.1.0)
- Stubble.Core (>= 1.10.8)
- System.Text.Encodings.Web (>= 4.7.2)
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 e-commerce microservices, built with .Net 7, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|