contract-testing-dotnet

Concrete .NET adapter for a provider-side contract test: Layer 1 (WebApplicationFactory) is always emitted; Layer 2 (Microcks TestEndpointAsync) is additive when the opt-in is set.

When to use

Entry contract

Exit contract

Invariants

Why this shape

An in-memory test server validates the application wiring without coupling to a live dependency. Stacking a Microcks contract layer on top replays the published contract examples against the running service, making conformance a deterministic gate.

« Replace a component that the SUT depends on with a test-specific equivalent. » — Meszaros, G., xUnit Test Patterns, 2007.

Allowed customisation

See also