Projects · 2025
Order Management
A domain-driven order service in four layers, with unit tests and Gherkin scenarios.
- .NET 9
- ASP.NET Core
- MediatR
- Entity Framework Core
- xUnit
- SpecFlow
- Docker Compose
- layers: API, Application, Domain, Infrastructure
- 4
- test suites: xUnit and SpecFlow
- 2
What it does
A reference build for an order service, written to practise domain-driven design. The Domain project holds the order rules and references nothing else. The Application layer handles commands and queries through MediatR, Entity Framework Core lives in Infrastructure, and the API is a thin host. It runs in Docker Compose.
How it is tested
Unit tests check the domain rules with xUnit. A separate SpecFlow project describes order calculation as Gherkin scenarios, which someone who does not write C# can read and check.
