Vostra.Results.AspNetCore.Testing 1.1.0

dotnet add package Vostra.Results.AspNetCore.Testing --version 1.1.0
                    
NuGet\Install-Package Vostra.Results.AspNetCore.Testing -Version 1.1.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="Vostra.Results.AspNetCore.Testing" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vostra.Results.AspNetCore.Testing" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Vostra.Results.AspNetCore.Testing" />
                    
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 Vostra.Results.AspNetCore.Testing --version 1.1.0
                    
#r "nuget: Vostra.Results.AspNetCore.Testing, 1.1.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.
#:package Vostra.Results.AspNetCore.Testing@1.1.0
                    
#: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=Vostra.Results.AspNetCore.Testing&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Vostra.Results.AspNetCore.Testing&version=1.1.0
                    
Install as a Cake Tool

Vostra.Results.AspNetCore.Testing

HTTP integration-testing toolkit for Vostra.Results. A TestHttpClient collapses an HTTP round-trip into a Result<T>, rebuilding the typed error from the Vostra.Results.AspNetCore RFC 7807 response so tests assert error identity, not substrings. It builds on the transport-neutral chain-and-assert layer in Vostra.Results.Testing.

The result: tests read like the domain script they're checking — no HTTP plumbing, no brittle Content.Should().Contain("not found"), and a rich failure diagnostic when something actually breaks:

var api = new TestHttpClient(httpClient, baseUrl: "products");

// success: returns the value
var product = await api.Get<Product>("/7").ShouldBeSuccess();

// failure: typed-error assertion, no substring matching
await api.Get<Product>("/9").ShouldHaveError("Product.NotFound");
await api.Post<Product>("", invalid).ShouldBeValidation();

// lists
var page = await api.GetList<Product>().ShouldBeSuccess();   // page.Items / page.Pagination
  • Fully async (no .Result), verbs: Get/GetList/Post/Put/Patch/Delete (generic + valueless).
  • Errors rebuilt from RFC 7807 problem+json into the matching ErrorBase kind, preserving Code.
  • Assertions (from Vostra.Results.Testing) throw a VostraAssertionException with a rich diagnostic (verb, URL, request body, server error) composed only on failure.
  • Swap the serializer/envelope by implementing IResultRawFormat (default: RawJsonFormat, System.Text.Json).
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 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 141 6/26/2026
1.0.0 125 6/26/2026
1.0.0-preview.4 60 6/26/2026
1.0.0-preview.3 65 6/26/2026
1.0.0-preview.1 76 6/24/2026