Skip to content
CAI
Software that uses CAICheck a score

matt-bentley/AspNetCore.EventSourcing

44.2

Weak · 8 November 2026

2.3k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an ASP.NET Core API implementing an Event Sourcing architecture backed by a single SQL Server database. It manages banking-related bounded contexts, specifically handling Customers, Accounts, and Transactions. The architecture has been streamlined to remove the previous Angular SPA, relying on the API as the sole presentation layer, while utilizing MediatR for command and query handling within a unit of work pattern.

Behavioural changes

Controllers now depend on MediatR ISender instead of IMediator

The API controllers (Accounts, Customers, Transactions) have been updated to inject MediatR's ISender interface rather than the full IMediator interface. This change restricts the controllers to only sending commands/queries, which enforces a clearer separation of concerns and prevents controllers from accidentally using IMediator methods like Publish or SendAsync with notifications. Additionally, a comment was added to the OpenAccountCommand to clarify that the UnitOfWork.CommitAsync call saves both the Account and AccountReadModel in the same transaction.

src/AspNetCore.EventSourcing.Api, src/AspNetCore.EventSourcing.Application · high confidence

Simplified architecture by removing Angular SPA and pipelines

The solution has been streamlined to focus on Event Sourcing with a single SQL Server database, removing the previous Angular SPA and associated CI/CD pipeline configurations. The API now serves as the sole presentation layer, and the README has been updated to reflect the Banking example with Customer and Account bounded contexts. Additionally, the serialization logic has been enhanced to support private property setters during JSON deserialization, and the unit of work now relies on the generic IPublisher interface instead of MediatR's IMediator.

(repo-wide) · high confidence

Test coverage

Updated test dependencies for repository tests

The test suite for the base repository was updated to use IPublisher instead of IMediator, ensuring the tests align with the current event-sourcing infrastructure.

tests · high 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 44 → 44 (+0.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 77 → 77 (+0.0)
  • Architecture 86 → 86 (+0.0)
  • Maturity 65 → 69 (+3.7)
  • Readiness 32 → 32 (+0.0)
  • Security 36 → 36 (+0.0)
  • Domain Modelling 60 → 60 (+0.0)
  • Event-Driven 100 → 100 (+0.0)
  • Event Sourcing 100 → 100 (+0.0)
  • Performance 100 → 100 (+0.0)

Resolved (8)

  • End-of-life runtime: .NET net7.0 (tests/AspNetCore.EventSourcing.Infrastructure.Tests/AspNetCore.EventSourcing.Infrastructure.Tests.csproj)
  • The word 'Transaction' is misspelled as 'Transation' in both the property name TransationDate and the anonymous type parameter TransationDate. While consistent with each other, this is a clear spelling error for the concept of a transaction date.
  • XML-doc coverage: AspNetCore.EventSourcing.Api (src/AspNetCore.EventSourcing.Api/AspNetCore.EventSourcing.Api.csproj)
  • XML-doc coverage: AspNetCore.EventSourcing.Application (src/AspNetCore.EventSourcing.Application/AspNetCore.EventSourcing.Application.csproj)
  • XML-doc coverage: AspNetCore.EventSourcing.Core (src/AspNetCore.EventSourcing.Core/AspNetCore.EventSourcing.Core.csproj)
  • XML-doc coverage: AspNetCore.EventSourcing.Hosting (src/AspNetCore.EventSourcing.Hosting/AspNetCore.EventSourcing.Hosting.csproj)
  • XML-doc coverage: AspNetCore.EventSourcing.Infrastructure (src/AspNetCore.EventSourcing.Infrastructure/AspNetCore.EventSourcing.Infrastructure.csproj)
  • XML-doc coverage: AspNetCore.EventSourcing.Migrations (src/AspNetCore.EventSourcing.Migrations/AspNetCore.EventSourcing.Migrations.csproj)

New (10)

  • End-of-life runtime: .NET net7.0 (src/AspNetCore.EventSourcing.Api/AspNetCore.EventSourcing.Api.csproj)
  • End-of-life runtime: .NET net7.0 (src/AspNetCore.EventSourcing.Application/AspNetCore.EventSourcing.Application.csproj)
  • End-of-life runtime: .NET net7.0 (src/AspNetCore.EventSourcing.Hosting/AspNetCore.EventSourcing.Hosting.csproj)
  • End-of-life runtime: .NET net7.0 (src/AspNetCore.EventSourcing.Infrastructure/AspNetCore.EventSourcing.Infrastructure.csproj)
  • End-of-life runtime: .NET net7.0 (src/AspNetCore.EventSourcing.Migrations/AspNetCore.EventSourcing.Migrations.csproj)
  • End-of-life runtime: .NET net7.0 (tests/AspNetCore.EventSourcing.Api.Tests/AspNetCore.EventSourcing.Api.Tests.csproj)
  • End-of-life runtime: .NET net7.0 (tests/AspNetCore.EventSourcing.Application.Tests/AspNetCore.EventSourcing.Application.Tests.csproj)
  • End-of-life runtime: .NET net7.0 (tests/AspNetCore.EventSourcing.Arch.Tests/AspNetCore.EventSourcing.Arch.Tests.csproj)
  • End-of-life runtime: .NET net7.0 (tests/AspNetCore.EventSourcing.Core.Tests/AspNetCore.EventSourcing.Core.Tests.csproj)
  • End-of-life runtime: .NET net7.0 (tests/AspNetCore.EventSourcing.Infrastructure.Tests/AspNetCore.EventSourcing.Infrastructure.Tests.csproj)

API surface

  • Unchanged — 12 HTTP endpoints

Architecture

  • Unchanged — 3 containers · 1 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

matt-bentley/AspNetCore.EventSourcing 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 f309270930e806b586cc1739f10ea8cdafb24b12 — 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.