ADR-0106: Default stack positioning¶
| Field | Value |
|---|---|
| Status | Accepted |
| Date | 2026-12-01 |
| Deciders | ConnectSoft Architecture Team (owner decisions of 2026-12-01) |
| Supersedes | The default-stack statements listed under "Documents corrected" |
Context¶
Several canonical pages still describe defaults that ConnectSoft no longer uses for new work: - MassTransit is called "the default messaging and orchestration engine". - AutoMapper is presented as the only mapper, with no mention of its licence boundary. - Angular, React and Vue are presented as equal to Blazor. - xUnit, NUnit and MSTest are listed as interchangeable.
Licence holds for several of these packages are recorded only in ADR-0102 and ADR-0103.
The engineering standards (ADR-0104) need a stated default for each choice so that a reviewer can tell a deliberate option from drift. The usage counts come from the engineering standards inventory.
Default means what a new service, library or template uses unless there is a recorded reason. Supported option means the templates and extensions keep it working and the standards cover it. Exception means it is allowed for a client project but has no ConnectSoft standard.
Decision¶
1. Target framework¶
The .NET baseline is set by ADR-0102. This record does not change it. Pages that still present .NET 8 or .NET 9 as current are corrected to point to ADR-0102.
2. Object mapping¶
| Measured | ConnectSoft | Consumer services |
|---|---|---|
Repositories pinning AutoMapper |
5 (12.0.1, 13.0.1, 17.0.0) | 9 (17.0.0) |
Repositories pinning Mapster |
1 | 0 |
Source files importing AutoMapper |
27 | 130 |
Source files importing Mapster |
0 | 0 |
Decision.
- Application code depends on the ConnectSoft object mapping abstraction (
ConnectSoft.Extensions.ObjectMapping), not on a mapper package directly. - Default: AutoMapper 17 through
ConnectSoft.Extensions.ObjectMapping.AutoMapper, in repositories where the AutoMapper licence is wired. - Supported option: Mapster through
ConnectSoft.Extensions.ObjectMapping.Mapster, for repositories without an AutoMapper licence. - A repository never crosses AutoMapper version 15 without the licence wiring. This hold is already recorded in ADR-0103.
3. Messaging¶
| Measured | ConnectSoft repositories | Consumer services |
|---|---|---|
Pinning MassTransit |
9 (8.2.3, 9.2.6) | 0 |
| Pinning Orleans server packages | 3 (8.2.0, 10.4.2) | 9 (10.4.2) |
Pinning NServiceBus |
4 | 0 |
Decision.
- Default: Orleans messaging through
ConnectSoft.Extensions.MessagingModel.Orleansfor new services. It needs no commercial licence and is the messaging stack of the consumer services in production use. - Supported options: MassTransit and NServiceBus remain selectable in the templates. Both carry licence constraints:
- MassTransit 9 requires
MT_LICENSEand is held at 9.2.6 by ADR-0103. - NServiceBus requires a commercial licence for production.
- A service chooses a non-default option only with a recorded reason, such as an existing broker, a saga requirement Orleans does not meet, or a client mandate.
4. User interface¶
Decision.
- Default: Blazor for web UI, through the ConnectSoft Shell, micro-frontend and UIKit templates. MAUI is the default for native mobile and desktop UI.
- Documented alternatives: Angular and React keep short guidance pages for client projects that require them. They are not offered by ConnectSoft templates, and the full UI standards (hydration, accessibility, RTL and responsive layout) are written for Blazor.
- Vue has no page.
5. Test framework, BDD and end-to-end tests¶
Decision.
- MSTest is the only unit and integration test framework for ConnectSoft repositories.
- Reqnroll with
Reqnroll.MsTestis the BDD framework. SpecFlow is not used for new code. The two repositories that still reference SpecFlow are listed in the findings register. - Playwright is the end-to-end browser test framework. It is used in one of two ways:
- through
Microsoft.Playwright.MSTest.v4and its MSTest base classes, as in the ConnectSoft repositories; - through plain
Microsoft.Playwright, driven from Reqnroll hooks, as in a dedicated end-to-end solution.
6. Assertions¶
Decision.
- New tests use MSTest
Assert,CollectionAssertandStringAssert. - FluentAssertions 7.2.2 is tolerated where a repository already uses it. It is held at that version by ADR-0103.
- FluentAssertions 8.x is commercially licensed. It is used only where a licence is recorded. The 17 repositories that pin 8.11.0 are listed in the findings register for a licence decision.
7. Persistence¶
Added after the original decision, by owner decision during the engineering standards program.
| Measured | ConnectSoft repositories | Consumer services |
|---|---|---|
| NHibernate with FluentNHibernate | 28 | 9 |
| FluentMigrator | 24 | 9 |
| Dapper | 25 | 9 |
| MongoDB driver | 17 | 0 |
| Entity Framework Core | 3 (no service) | 0 |
FluentNHibernate ClassMap mappings are found in 75 ConnectSoft files and 64 consumer files. Mapping-by-code is not used.
Decision.
- Default: NHibernate with FluentNHibernate
ClassMapmappings for relational persistence, and FluentMigrator for schema migrations. - Supported options:
- Dapper, for read paths that need hand-written SQL;
- MongoDB, for document storage.
- Exception: Entity Framework Core. It is used only with a recorded reason, such as a client mandate or a third-party component that requires it.
Documents corrected¶
These statements are superseded and are rewritten in the standards program:
- MassTransit as the default:
architecture/technology/messaging/masstransit.md:5("the default messaging and orchestration engine")- the MassTransit-only framing of
architecture/communication/messaging-model.mdandarchitecture/event-driven-architecture/event-driven-architecture.md - AutoMapper as the only mapper:
cross-cutting-concerns/code-quality-standards/object-mapping.md, plus the AutoMapper-default examples inarchitecture/communication/service-model.md,rest-api.md,grpc.mdandarchitecture/testing/unit-testing.md. - Angular, React and Vue as equal options:
architecture/frontend-development.mdand the emptytechnology/frontend-technology-stack.md. - Interchangeable test frameworks: the xUnit, NUnit and MSTest lists in
architecture/testing.md. - SoftwareFactory pages:
- "All generated microservices use MassTransit" and the AutoMapper default in
ConnectSoft.AI.SoftwareFactory.Documentation/docs/core-principles/, which receive a superseded notice - the MassTransit-primary note in
docs/reference/naming-conventions.md
Alternatives considered¶
| Option | Outcome |
|---|---|
| Mapster as the default mapper | Rejected for now. No code imports Mapster directly, and the consumer services run AutoMapper 17 with the licence wired. Mapster stays the licence-free option. |
| Hand-written mapping as the default | Rejected. The mapping abstraction and profiles are already used across services. |
| MassTransit stays the default | Rejected. MassTransit 9 needs a commercial licence, and new production services use Orleans messaging. |
| No default messaging stack | Rejected. Reviewers need a default to tell a deliberate option from drift. |
| Blazor and MAUI only, with no Angular or React guidance | Rejected. Client projects sometimes require them, and short guidance is kept. |
| xUnit allowed in libraries | Rejected. One framework keeps test tooling, Reqnroll and Playwright bindings the same everywhere. |
| FluentAssertions 7.2.2 as the standard | Rejected. MSTest assertions need no licence decision when FluentAssertions moves on. |
Consequences¶
- The messaging, mapping, frontend and testing standards cite this record.
- Templates keep offering MassTransit and NServiceBus. Their documentation gains licence notes, and the template defaults are reviewed during the enforcement phase.
- New tests in repositories that use FluentAssertions 7.2.2 may still use it. Repositories on 8.x need an owner licence decision.
- Two SpecFlow repositories and 17 FluentAssertions 8.x repositories carry findings-register rows.