Samples
Complete working examples demonstrating Accordant features.
| Sample | Description |
|---|---|
| BankAccount | Simple account with deposit/withdraw. Used in the Overview. |
| TodoList | Basic CRUD operations for todos. Used in Your First Spec tutorial. |
| TodoList-Extended | Demonstrates response-dependent state (server timestamps) and server-generated IDs with request derivations. |
| TodoList-FaultInjection | Demonstrates indefinite failure handling with server-side and client-side fault injection. See Indefinite Failures. |
| Booking | Demonstrates concurrency testing — the "double-booking" scenario where two customers try to book the same slot. |
| JobQueue | Demonstrates async operations with step functions, polling for completion, and server-generated result paths. |
Running a Sample
cd Samples/<SampleName>/<SampleName>.Tests
dotnet test
Most samples include both an API project and a Tests project. The tests demonstrate the Accordant spec and can be run directly.