Rest Assured Net Save

C# DSL for writing readable tests for HTTP-based APIs

Project README

RestAssured.Net

github-actions-ci Nuget Nuget

RestAssured.Net brings the power of REST Assured to the C# / .NET ecosystem.

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

using static RestAssured.Dsl;

[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.

Where can I get RestAssured.Net?

You can add RestAssured.Net to your project using NuGet:

dotnet add package RestAssured.Net or nuget install RestAssured.Net

RestAssured.Net is also available through GitHub Packages.

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.

Open Source Agenda is not affiliated with "Rest Assured Net" Project. README Source: basdijkstra/rest-assured-net
Stars
132
Open Issues
13
Last Commit
1 week ago
License

Open Source Agenda Badge

Open Source Agenda Rating