ProtoTest.Rest 1.1.5

dotnet add package ProtoTest.Rest --version 1.1.5
                    
NuGet\Install-Package ProtoTest.Rest -Version 1.1.5
                    
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="ProtoTest.Rest" Version="1.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ProtoTest.Rest" Version="1.1.5" />
                    
Directory.Packages.props
<PackageReference Include="ProtoTest.Rest" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ProtoTest.Rest --version 1.1.5
                    
#r "nuget: ProtoTest.Rest, 1.1.5"
                    
#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.
#:package ProtoTest.Rest@1.1.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ProtoTest.Rest&version=1.1.5
                    
Install as a Cake Addin
#tool nuget:?package=ProtoTest.Rest&version=1.1.5
                    
Install as a Cake Tool

ProtoTest.Rest

REST requests that use the ProtoTest context, authentication and trace.

dotnet add package ProtoTest.Rest
// ExpectAsync asserts the response shape in the call; it is the same facade assertion.
using var response = await Proto.Context.Rest()
    .GetAsync("/orders/{id}", new { id = 42 })
    .ExpectAsync(new { id = 42, status = "active" });

// After the fact, or exact (every field must be mentioned):
response.Should.HaveHttpStatus(HttpStatusCode.OK)
    .Should.MatchShape(new { id = 42, status = "active" });

var id = response.ReadRequired<int>("$.id");  // throws naming the route and path when missing

Includes

The request can use a named target when your application has more than one API. Authentication can also use information that was added to the test context during setup.

Requests and checks are added to the same test trace as the rest of the test. Optional collectors can report endpoint, OpenAPI and traffic coverage: the fields that arrived in responses but that no shape assertion mentioned.

Learn more

Product 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ProtoTest.Rest:

Package Downloads
ProtoTest.OpenApi

OpenAPI contract coverage for ProtoTest REST tests.

ProtoTest.WireMock

Fake HTTP services for ProtoTest suites, backed by WireMock.Net: per-test stubs, matched-request trace evidence and stub coverage.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.5 0 10/3/2026
1.1.4 0 10/3/2026
1.1.3 0 10/3/2026
1.1.2 0 10/3/2026
1.1.1 39 10/2/2026
1.1.0 52 10/2/2026
1.0.1 180 9/20/2026
1.0.0 101 9/20/2026