alesimoes/hexagonal-clean-architecture
39.1
Weak · 8 November 2026
2.3k
lines of production code
C#
primary language
7
measurements over time
What this system is
This system is a domain-driven .NET API for managing stock trading and user wallets. It exposes endpoints for buying and selling stocks, retrieving transaction histories, and checking wallet balances. The architecture relies on a layered design with use cases, domain models, and event handlers to handle business logic and data persistence.
Features
Added use cases for retrieving wallet and transaction data
Introduced new application-layer use cases for fetching wallet details and transaction histories. The GetWallet use case retrieves a user's wallet information, including invested amounts and associated stock holdings, while the GetTransactions use case fetches transaction records within a specified date range, enforcing a 90-day limit. Both use cases include input validation to ensure valid identifiers and date ranges, and map domain entities to output models for consumption.
source/ANM.Example.Application/UseCases/GetTransactions, source/ANM.Example.Application/UseCases/GetWallet · high confidence
Initial release of the ANM Example API with domain-driven architecture
The application now includes a complete domain-driven design implementation, introducing core abstractions for use cases, unit of work, and event publishing. The API layer exposes endpoints for creating users, buying/selling stocks, and retrieving wallet/transaction data, all wired through a FluentMediator pipeline. This change adds the foundational infrastructure, including dependency injection registrations, Swagger documentation, and repository interfaces, enabling the core business logic to be executed through a clean, layered architecture.
(repo-wide) · high confidence
Introduce domain models and event handlers for stock trading and user wallet management
Added domain entities for Stock, Transaction, and Wallet, along with their corresponding domain events (StockBougthDomainEvent, StockSoldDomainEvent, TransactionCreatedDomainEvent, WalletUpdatedDomainEvent) and their respective handlers. This introduces the core logic for buying and selling stocks, recording transactions, and updating wallet balances, including validation for stock quantities and amounts.
source/ANM.Example.Domain · high confidence
Dependencies
Add .NET Core 3.1 and .NET Standard 2.0 project files for the example application
The example application's build structure is established by adding nine new .csproj files, defining the project graph and dependencies. The API and repositories projects target .NET Core 3.1, while the core abstractions and other supporting projects target .NET Standard 2.0. This includes specific package references such as Microsoft.EntityFrameworkCore 3.1.1, Swashbuckle.AspNetCore 5.0.0, and FluentMediator 0.4.7, effectively setting up the dependency graph for the example solution.
(dependencies) · medium confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 39 → 39 (+0.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 65 → 65 (+0.0)
- Architecture 85 → 85 (+0.0)
- Maturity 70 → 70 (+0.0)
- Readiness 17 → 17 (+0.0)
- Security 48 → 49 (+1.1)
- Domain Modelling 58 → 58 (+0.0)
- Performance 100 → 100 (+0.0)
Resolved (17)
- Documentation: no contributor guidance (README.md)
- Documentation: no usage examples (README.md)
- End-of-life runtime: .NET netcoreapp3.1 (source/ANM.Example.Repositories/ANM.Example.Repositories.csproj)
- Low XML-doc coverage: ANM.Core.Application.Abstractions (source/ANM.Core.Application.Abstraction/ANM.Core.Application.Abstractions.csproj)
- Low XML-doc coverage: ANM.Core.Domain.Abstractions (source/ANM.Core.Domain.Abstractions/ANM.Core.Domain.Abstractions.csproj)
- Low XML-doc coverage: ANM.Example.API (source/ANM.Example.API/ANM.Example.API.csproj)
- Low XML-doc coverage: ANM.Example.Application (source/ANM.Example.Application/ANM.Example.Application.csproj)
- Low XML-doc coverage: ANM.Example.Application.Abstractions (source/ANM.Example.Application.Abstractions/ANM.Example.Application.Abstractions.csproj)
- Low XML-doc coverage: ANM.Example.Domain (source/ANM.Example.Domain/ANM.Example.Domain.csproj)
- Low XML-doc coverage: ANM.Example.EventPublisher (source/ANM.Example.EventPublisher/ANM.Example.EventPublisher.csproj)
- Low XML-doc coverage: ANM.Example.Infrastructure.EventHandler (source/ANM.Example.Infrastructure.EventHandler/ANM.Example.Infrastructure.EventHandler.csproj)
- Low XML-doc coverage: ANM.Example.Repositories (source/ANM.Example.Repositories/ANM.Example.Repositories.csproj)
- Spelling inconsistency in domain event terminology: 'Bougth' is used instead of the standard English spelling 'Bought'. This appears in the event type name, the handler name, and the factory method return type.
- Typo in class name: 'EventPubisher' is misspelled (missing 'l' in 'Publisher').
- Typo in parameter name: 'transactionsReporitory' is misspelled (missing 's' in 'Repository'), whereas 'walletRepository' is spelled correctly.
- redundant comment (source/ANM.Example.API/Startup.cs)
- redundant comment (source/ANM.Example.API/Startup.cs)
New (2)
- End-of-life runtime: .NET netcoreapp3.1 (source/ANM.Example.API/ANM.Example.API.csproj)
- End-of-life runtime: .NET netcoreapp3.1 (source/ANM.Example.Repositories/ANM.Example.Repositories.csproj)
API surface
- Unchanged — 5 HTTP endpoints
Architecture
- Unchanged — 2 containers · 2 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
alesimoes/hexagonal-clean-architecture was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 7986ee5281f1d376ca11bf02f3881dc3870b357b — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.