Anarchy.Toolkit.Testing.Runtime.Web.Aws 3.0.0

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

Anarchy.Toolkit.Testing.Runtime.Web.Aws

Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Testing kit · Package catalog

Test helpers for REST APIs deployed both natively and as AWS Lambda functions.

dotnet add package Anarchy.Toolkit.Testing.Runtime.Web.Aws
  • Derive from AwsRestApiTestCaseBase<TStartup, TAppSettings>: TestEndpointAsync runs the native and Lambda pipelines and compares them; TestEndpointLambdaAsync runs the Lambda pipeline only.
  • TestableLambdaEntrypoint hosts the Lambda pipeline in the Development environment.
  • ToApiGatewayProxyRequestAsync, ToApiGatewayHttpApiV2ProxyRequestAsync and ToApplicationLoadBalancerRequestAsync convert an HttpRequestMessage; response.Should().HaveStatusCodeOrDump(...) asserts API Gateway responses.
  • For an AwsWebAppMultiTriggerEntryPointBase, entryPoint.InvokeAsync(request, LambdaTrigger.HttpApiV2) calls the handler of a trigger and returns a LambdaHttpResponse, and TestEndpointLambdaAsync(entryPoint, trigger, request, status, assertions) asserts it like the REST path.

When to use it

Use this package for APIs that ship an AwsWebAppEntryPointBase or AwsWebAppMultiTriggerEntryPointBase handler. APIs without a Lambda entry point use Anarchy.Toolkit.Testing.Runtime.Web.

How to use it

public class OrdersApiTest(WebApplicationFactory<Startup> factory)
    : AwsRestApiTestCaseBase<Startup, AppSettings>(new TestableLambdaEntrypoint<Startup>(), factory, ["orders:read"]);

See the package catalog and toolkit overview.

Releases

See the release notes for the complete release history.

Product Compatible and additional computed target framework versions.
.NET 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
3.0.0 0 12/1/2026
2.0.0 49 12/1/2026
1.0.0 68 11/27/2026

## Releases

### 3.0.0

- Add HTTP API 2.0 and ALB request builders, `InvokeAsync(request, LambdaTrigger)` and a trigger-aware `TestEndpointLambdaAsync`.
- The REST and HTTP API 2.0 request builders set the request context's domain name, as API Gateway does, so the Lambda host no longer warns about it.
- Update dependencies for the current package release.

### 2.0.0

- feat(Core)!: Add health and telemetry extension points
- feat(Infrastructure): Add configurable provider and messaging seams
- feat(Bootstrap)!: Classify environments safely and configure AWS secrets
- feat(Runtime)!: Add hosting health workers and UI extensibility
- feat(Testing): Extend mock server and AWS test helpers
- build(solution): Register cache packages and update tooling

### 1.0.0

- Introduced the package with the AWS implementations extracted from its provider-neutral parent.