dotnet-testing - Test APIMatic-generated .NET SDK integration code
Provides patterns for unit testing C# code using APIMatic .NET SDKs by stubbing HttpClient and asserting requests, responses, and errors.
Tags
Updated: 2026-09-20Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Stub HttpMessageHandler for SDK tests
- Test SDK success and error paths
- Assert outgoing HTTP request details
- Verify status and transport retries
- Register stub with dependency injection
Inputs
- APIMatic .NET SDK
- C# test project
- SDK contract sheet
Outputs
- SDK unit test code
- HttpMessageHandler stub class
Requirements
- .NET SDK
- C# testing framework
