Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.61 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.61 KB

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?

That's awesome! Before you get to work and submit a Pull Request, though, I'd appreciate you telling me a little more about your idea.

Oh, and if you find a bug, or think something is missing from RestAssured.Net, feel free to submit an issue.