Architecture Decision Record
ADR-103: bUnit Component-Test Tier as a Shipped Package
Status
Accepted (2026-08-31). Revised 2026-09-03: one trade-off overstated how far the AngleSharp advisory
pin travels. See Revision (2026-09-03) at the end. Revised 2026-09-19: four drifted facts refreshed
(the bunit pin, the TestPrincipal role shorthand, the helper's call-site count, and the lockstep
package count). See Revision (2026-09-19) at the end. Revised 2026-10-01 (the base now registers the
real authorization service, so a component test can assert a role denial; see Revision below).
Revised 2026-10-06: the helper's call-site count refreshed and two omitted registrations recorded (the
base's ViewerTimeZone default and the ADC Conference subclass's inert event lookup). See Revision
(2026-10-06) at the end. Revised 2026-10-07: anchors refreshed after the v1.233.0 release. See Revision
(2026-10-07) at the end. Revised 2026-10-21: the bunit pin moved to 2.12.5 and a fourth central
package file (MMCA.Helpdesk's) names it, the helper's call-site count refreshed, and the third facade
registration (IPendingToastService) and the FieldErrorAccessibilityExtensions helper recorded.
See Revision (2026-10-21) at the end. Revised 2026-10-26: the bunit pin moved to 2.13.3 in all
four central package files, the helper's call-site count refreshed, and anchors refreshed. See
Revision (2026-10-26) at the end. Revised 2026-11-23: the bunit pin moved to 2.15.2 and the
AngleSharp pin to 1.10.5 (now above the floor bunit declares), the helper's call-site count
refreshed, the six shipped page-test bases and the changed Store Catalog and ADC Conference
subclasses recorded, the "fifteen hand-rolled copies" remark dropped because source no longer
carries it, and anchors refreshed. See Revision (2026-11-23) at the end.
Context
Three test tiers in this workspace are decided in writing and one is not. ADR-015 gates structure
with NetArchTest. ADR-058 ships the runtime conformance suites as abstract bases in
MMCA.Common.Testing and scopes itself explicitly to contracts that only a booted host can prove
(058-runtime-conformance-suites-as-a-package.md:16-25,32-35). ADR-063 and ADR-092 ship the browser
tier as Playwright contracts and deploy gates (WCAG 2.1 AA scans, Core Web Vitals budgets). Between a
plain unit test over a handler and a Playwright run against a live stack sits the component tier:
render one Blazor page or component in process, drive it, assert on its markup. That tier exists in
three of the four code repos with a Blazor UI and was recorded nowhere. ADR-101 names the Testing.* packages only
to keep them out of the metapackage (101-common-metapackage.md:63-66), which decides their packaging
and nothing about the tier itself.
A component test is cheap to write and expensive to set up, and the expensive part is not per test.
It is a fixed set of choices that is the same answer in every repo: which bUnit line, which component
vendor's services, whether JSInterop is strict or loose, how a principal reaches both
<AuthorizeView> and a page that injects AuthenticationStateProvider directly, how
IStringLocalizer<T> resolves for ADR-027 markup, and when the renderer info is set. Getting one of
them wrong does not fail as a setup error: it fails as what looks like a bug in the page under test.
An unresolvable IToastService, a viewport that no browser answers so the card/grid choice comes down
to timing, or a test double silently replaced by the framework default because its registration ran
after the bUnit provider was frozen.
Decision
Ship the component-test tier as a package. MMCA.Common.Testing.UI
(MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/MMCA.Common.Testing.UI.csproj:3) is one of the
MMCA.Common.* packages released in lockstep (MMCA.Common/FACTS.md:20-21,51), and its BunitComponentTestBase
fixes every choice above once, in one file.
- bUnit v2, with the version-specific symbols isolated to this base. The base derives from bUnit
v2's
BunitContext(MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/Infrastructure/BunitComponentTestBase.cs:38), and its remarks state why: v2 is the line compatible with xUnit v3 and Microsoft Testing Platform, and derived test classes callRenderUnderTest/RenderAsand never touch the version-specific symbols, so a move off that line changes this file and no other (BunitComponentTestBase.cs:30-35). The line is pinned atbunit2.15.2 in each repo's central package file (MMCA.Common/Directory.Packages.props:374-375,MMCA.ADC/Directory.Packages.props:79,MMCA.Store/Directory.Packages.props:79,MMCA.Helpdesk/Directory.Packages.props:29), and the package carries a directAngleSharppin because central package management does not pin transitives (MMCA.Common.Testing.UI.csproj:15-17). - MudBlazor services plus the ADR-067 facades, registered once. The constructor calls
Services.AddMudServices()(BunitComponentTestBase.cs:47) and thenServices.AddCommonUiFacades()(:54), which is the same call the production shell makes fromAddUIShared(MMCA.Common/Source/Presentation/MMCA.Common.UI/DependencyInjection.cs:185). That call registersIToastService->MudToastService,IAppDialogService->MudAppDialogServiceandIPendingToastService->PendingToastService(the toast that survives aforceLoadnavigation) withTryAdd(DependencyInjection.cs:276-280), so a component test resolves the vendor-neutral facades and exercises the real Mud-backed toast and dialog path. The pending-toast facade is not Mud-backed: it wrapssessionStoragethroughIJSRuntime(MMCA.Common/Source/Presentation/MMCA.Common.UI/Services/PendingToastService.cs:7-13), so under loose JSInterop its storage calls only return defaults. A test that wants a recording double registers one afterwards (last registration wins,BunitComponentTestBase.cs:49-53). - Loose JSInterop.
JSInterop.Mode = JSRuntimeMode.Loose(:56) so MudBlazor components that probe JS during render return default values instead of throwing (:18-19). - A mutable
AuthenticationStateProviderthat serves both consumption paths. OneMutableAuthenticationStateProviderinstance is held by the base (:43), registered as theAuthenticationStateProvidersingleton (:64), and implemented over a settable principal that notifies listeners (:172-184).RenderAssets the principal and also adds the cascadingAuthenticationState, so<AuthorizeView>and a directly injecting page agree (:139-151);SetUserchanges it mid-test without a new render root (:131); the default is anonymous (:41,:133-137). Authorization is the real service: afterAddAuthorizationCore(:57) the base registersDefaultAuthorizationServiceexplicitly, because bUnit pre-registers a placeholder that throws andAddAuthorizationCoreonly TryAdds (:59-63). It evaluates what a view builds (itsRolesand the default deny-anonymous policy), so a component test can assert a role denial (MMCA.Common/Tests/Presentation/MMCA.Common.UI.Tests/Infrastructure/BunitComponentTestBaseAuthorizationTests.cs:16). Principals come from the shippedTestPrincipalfactory, which writes the user id under bothsubandClaimTypes.NameIdentifierbecause a real principal reaches a page under either name (Infrastructure/TestPrincipal.cs:7,22-32), plus anInRole(role, userId)shorthand for a single-role principal. The framework declares no role vocabulary of its own, so a test names the role its app uses (TestPrincipal.cs:41). - Open-generic
IStringLocalizerfor ADR-027 markup.Services.AddLogging()andServices.AddLocalization()(BunitComponentTestBase.cs:69-70) let every component test render localized markup against the neutral resources in the component's own assembly with no per-test setup (:66-68). The base also registersTimeProvider.SystemwithTryAdd, so a test that drives time registers its own clock (:72-76), and registers theViewerTimeZoneservice the notification and session pages format instants with, also withTryAdd; under loose JSInterop its browser read returns null, so those pages render in UTC unless a test sets up thegetTimeZonecall itself (:78-81). SetRendererInfobehind one helper, because its call ordering is load-bearing.ConfigureDataGridListPageHost(:110-128) registers the list-page state services (:115-116), by default substitutes MudBlazor'sIBrowserViewportServicewith an inert double soIsMobilestays deterministically false (stubViewport: falsekeeps the real service,:113,:118-121; which is whyMoqis a package dependency rather than a hand-written stub,MMCA.Common.Testing.UI.csproj:19-23), adds bUnit's persistent component state for the prerender boundary (:124), and callsSetRendererInfolast (:127). The rule is written where the helper is:SetRendererInfobuilds and freezes the bUnit service provider, so any registration made after it is silently ignored and the page resolves the framework default instead of the test's double (:89-92). Forty-six test files across MMCA.Common, MMCA.ADC and MMCA.Store call the helper today (eight in MMCA.Common, twenty-eight in MMCA.ADC, ten in MMCA.Store), and the package's ownDataGridListPageTestsBasecalls it on its first render (Pages/DataGridListPageTestsBase.cs:143).- The rest of the harness ships with it.
RenderMudProvidersrenders the popover, dialog and snackbar providers into the test's render root and returns handles (:153-164,:166-170);BunitInteractionExtensionsexpresses clicks and text reads over accessible text rather than CSS paths (Infrastructure/BunitInteractionExtensions.cs:12-34);MarkupSnapshotis a dependency-free golden-markup comparison that normalizes MudBlazor's per-render GUIDs (Infrastructure/MarkupSnapshot.cs:22);FieldErrorAccessibilityExtensionsasserts that a field's validation error reaches assistive technology (an alert role,aria-invalid, and a description reference;Infrastructure/FieldErrorAccessibilityExtensions.cs:7-12); and the HTTP-facing doubles cover the UI service layer (Infrastructure/UiHttpServiceHarness.cs:12,Infrastructure/CapturingHttpMessageHandler.cs:20,Infrastructure/StubTokenStorageService.cs:13,Infrastructure/HttpTestDoubles.cs:11,Infrastructure/ErrorSummaryExtensions.cs:10). The package also ships six shared page-test bases over the base class (Pages/ConfirmEmailPageTestsBase.cs:26,Pages/RoleAdminEditPageTestsBase.cs:22,Pages/RoleAdminListPageTestsBase.cs:21,Pages/DataGridListPageTestsBase.cs:28,Pages/DetailPageLoadStateTestsBase.cs:27,Pages/SignInLinkPageTestsBase.cs:29), and for them it carriesAwesomeAssertionsandxunit.v3.extensibility.coreinto every consuming test project (MMCA.Common.Testing.UI.csproj:24-27). - Adoption is a thin repo-local subclass, or the shipped base directly. Six consumer test projects take the
package reference: ADC Conference, Identity and Engagement
(
MMCA.ADC/Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/MMCA.ADC.Conference.UI.Tests.csproj:12,.../Identity/MMCA.ADC.Identity.UI.Tests/MMCA.ADC.Identity.UI.Tests.csproj:12,.../Engagement/MMCA.ADC.Engagement.UI.Tests/MMCA.ADC.Engagement.UI.Tests.csproj:11) and Store Catalog, Sales and Identity (MMCA.Store/Tests/Modules/Catalog/MMCA.Store.Catalog.UI.Tests/MMCA.Store.Catalog.UI.Tests.csproj:12,.../Sales/MMCA.Store.Sales.UI.Tests/MMCA.Store.Sales.UI.Tests.csproj:12,.../Identity/MMCA.Store.Identity.UI.Tests/MMCA.Store.Identity.UI.Tests.csproj:12); MMCA.Common's own UI tests take it by project reference (MMCA.Common/Tests/Presentation/MMCA.Common.UI.Tests/MMCA.Common.UI.Tests.csproj:23). Each repo's subclass carries only what its head owns and nothing shared: Store Catalog's adds the ADR-042 device-capability defaults and the browser-origin public link builder, asAddUIShareddoes on every head (MMCA.Store/Tests/Modules/Catalog/MMCA.Store.Catalog.UI.Tests/BunitTestBase.cs:17-23), ADC Conference's adds the ADR-042 device-capability defaults, inert configuration and the services its pages inject (public link builder, session schedule, HTTP client settings, an inert session-asset service, an inert event lookup), plus aTimeProvider.Systemregistration (:55) that repeats the base's own TryAdd default. Those registrations live in one internal staticAddConferencePageDefaults(IServiceCollection)that the constructor calls, so a test class that derives a shared framework page base instead calls the same method (MMCA.ADC/Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/BunitTestBase.cs:26,34-78), and MMCA.Common's adds the layout-chrome services only its own tests render (ThemeService,ICultureApplier), the ADR-042 capability defaults its shared pages inject, the browser-originIPublicLinkBuilder(which Store Catalog's subclass also registers) and the not-found page's always-falseIForbiddenReExecutionDetector(MMCA.Common/Tests/Presentation/MMCA.Common.UI.Tests/BunitTestBase.cs:25-46). ADC Engagement has no subclass: its test classes derive fromBunitComponentTestBasedirectly (MMCA.ADC/Tests/Modules/Engagement/MMCA.ADC.Engagement.UI.Tests/Pages/SessionLive/SessionLiveQuestionPanelTests.cs:22).
All six consumer projects sit in the gating CI subset, so the tier runs on every pull request rather
than on a schedule (MMCA.ADC/MMCA.ADC.CI.slnf:46,53,59,
MMCA.Store/MMCA.Store.CI.slnf:40,46,52). MMCA.Helpdesk has a Blazor UI host on MudBlazor and
MMCA.Common.UI (MMCA.Helpdesk/Source/Hosts/UI/MMCA.Helpdesk.UI.Web/MMCA.Helpdesk.UI.Web.csproj:1,3,11)
but no UI test project (its three test projects are Tickets domain, Tickets application, and
architecture), so the tier is adopted in three of the four repos with a Blazor UI.
Rationale
- The setup is what a component test gets wrong, so the setup is what the framework should own. Every item in the Decision is a choice with one correct answer per repo and a failure mode that reads as a defect in the page under test. Shipping them as a base class turns "remember the six rules" into "inherit the base", the same invariant-over-discipline posture ADR-015 takes for structure and ADR-058 takes for runtime contracts.
- One freeze rule, one call site. The
SetRendererInfoordering constraint cannot be enforced by the compiler, so the next best thing is to have exactly one place that gets it right and a helper name that says when to call it (BunitComponentTestBase.cs:84-103). - The version boundary is a single file. Isolating
BunitContextandRender<T>behindRenderUnderTest/RenderAsmeans a bUnit line change is a framework edit, not a sweep across every UI test class in three repos (:30-35). - Test-time and run-time resolve the same facades. Because the base calls the production
AddCommonUiFacadesrather than registering its own doubles (:54,MMCA.Common.UI/DependencyInjection.cs:185,276-280), a component test asserts against the real toast and dialog implementations ADR-067 put behind those interfaces, and a test that wants to assert on a toast opts into a double explicitly. - A package matches how every other shipped test tier is delivered. Runtime conformance
(ADR-058), accessibility (ADR-063) and web vitals (ADR-092) all ship as consumable contracts rather
than as copied snippets, and a package inherits the lockstep release policy (ADR-016) so the tier
moves with the framework it tests (
FACTS.md:16-18).
Trade-offs
- Loose JSInterop proves nothing about JS. A component test can render a component that calls a
JS module which does not exist, because the loose mode answers with defaults
(
BunitComponentTestBase.cs:56). Only the browser tier (ADR-063, ADR-092) catches that. - Authorization in this tier answers on what the view declares, not on the permission registry.
The real
DefaultAuthorizationServiceevaluates a view'sRolesand the default deny-anonymous policy (:59-63), so a component test can assert a role denial, but a render never runs the application's permission checks; permission behavior belongs to the handler and API tiers. - The frozen-provider rule is a convention, not a compiler error. Nothing fails a test that
registers a service after
SetRendererInfo; the symptom is the framework default resolving quietly in place of the double (:89-93), which is exactly the failure the helper exists to prevent and cannot prevent for a test that bypasses it. - Nothing enforces adoption. No fitness rule requires a UI test project to subclass the shared base, so a new project can still re-derive the block; the only inventory is a search.
- The base pulls MudBlazor and Moq into every consuming test project
(
MMCA.Common.Testing.UI.csproj:18,23), so a repo that wanted a different mocking library in its UI tests still takes Moq transitively, and a non-MudBlazor UI could not use this base at all. - The bUnit version is pinned per repo, not by the package. The package references
bunitwithout a version (MMCA.Common.Testing.UI.csproj:15), and every consuming test project referencesbunitdirectly as well (MMCA.ADC/Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/MMCA.ADC.Conference.UI.Tests.csproj:10), so each repo's central package file names the number (MMCA.Common/Directory.Packages.props:375,MMCA.ADC/Directory.Packages.props:79,MMCA.Store/Directory.Packages.props:79). MMCA.Helpdesk's central file namesbunitandMMCA.Common.Testing.UItoo (MMCA.Helpdesk/Directory.Packages.props:29,96) although no Helpdesk project references either, so four files have to agree. TheAngleSharpadvisory pin does not spread that way: it is named once, inMMCA.Common/Directory.Packages.props:383, and reaches consumers transitively through the package's own direct reference (MMCA.Common.Testing.UI.csproj:17). It is still constrained by thebunitnumber, though: anAngleSharpthat adds an interface member an olderbunitbuild does not implement fails everyFindwith aTypeLoadException, which is why the central file's comment ties the two together (MMCA.Common/Directory.Packages.props:376-382). That comment has not kept up with the pins: it still saysbunit2.13.3 floorsAngleSharpat 1.8.6 and asks to keep the two in step, while the pins arebunit2.15.2 (:375) andAngleSharp1.10.5 (:383). It is 1.10.5 today, above the 1.10.1 thatbunit2.15.2 itself declares, and the lock file resolves the direct pin to 1.10.5 (MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/packages.lock.json:5-10,17-29).
Related
ADR-058 (the runtime conformance tier this sits
below: same delivery shape, different question, and its bases need a booted host where these need
only a renderer), ADR-063 and
ADR-092 (the browser tier above, which owns everything loose
JSInterop and a stubbed viewport cannot see), ADR-067 (the shell
and the IToastService / IAppDialogService facades this base registers through the production
AddCommonUiFacades call), ADR-027 (the localized markup the open-generic
IStringLocalizer registration lets a component test render),
ADR-042 (the capability defaults a consumer subclass adds on
top), ADR-101 (why this package stays outside the MMCA.Common
metapackage), ADR-015 (the structural tier below) and
ADR-016 (the lockstep release the package rides).
Revision (2026-09-03)
The decision and the mechanism are unchanged. One trade-off's premise was wrong. "The bUnit
version is pinned per repo" said the AngleSharp advisory pin has to be repeated across the three
central package files the way the bunit version is. It does not. bunit is named in all three
(MMCA.Common/Directory.Packages.props:206, MMCA.ADC/Directory.Packages.props:31,
MMCA.Store/Directory.Packages.props:51) because every consuming UI test project takes a direct
bunit reference of its own
(MMCA.ADC/Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/MMCA.ADC.Conference.UI.Tests.csproj:10).
AngleSharp is named only in MMCA.Common (MMCA.Common/Directory.Packages.props:210), where it
versions the package's own direct reference (MMCA.Common.Testing.UI.csproj:15); no consumer repo
pins it in a central package file or a project file, so consumers inherit the patched version with
the package. The trade-off now says so. Citation anchors elsewhere in the record were refreshed at
the same time with no change of substance.
Revision (2026-09-19)
The decision and the mechanism are unchanged. Four facts had drifted since the record was
written. The bunit line is now pinned at 2.11.3, not 2.9.0, and all three central package files
still agree on that number (MMCA.Common/Directory.Packages.props:233,
MMCA.ADC/Directory.Packages.props:31, MMCA.Store/Directory.Packages.props:55). TestPrincipal
no longer carries an ADC-specific Organizer shorthand: it exposes a generic
InRole(string role, string userId = "1") whose remarks state that the framework declares no role
vocabulary, so a test names the role its own app uses
(MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/Infrastructure/TestPrincipal.cs:34-42).
ConfigureDataGridListPageHost now has twenty-two calling test files, not nineteen (two in
MMCA.Common, twelve in MMCA.ADC, eight in MMCA.Store). The lockstep package count is no longer
restated here at all, because MMCA.Common/FACTS.md owns it and the number moves with every new
package. The AngleSharp claim from the 2026-09-03 revision was re-checked and still holds: the pin
is named only in MMCA.Common's central package file and in no consumer repo's.
Revision (2026-10-01)
The authorization mechanism changed; the rest of the decision is unchanged. The base no longer
registers a permissive IsAuthenticatedAuthorizationService. After AddAuthorizationCore it registers
the real DefaultAuthorizationService, because bUnit pre-registers a throwing placeholder and
AddAuthorizationCore only TryAdds; the real service evaluates a view's Roles and the default
deny-anonymous policy, where a permissive double authorized every authenticated principal
(MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/Infrastructure/BunitComponentTestBase.cs:56-62).
A shipped test pins it: a principal outside an <AuthorizeView>'s role is denied
(MMCA.Common/Tests/Presentation/MMCA.Common.UI.Tests/Infrastructure/BunitComponentTestBaseAuthorizationTests.cs:16).
The Decision bullet and the authorization trade-off now say so: a component test can assert a role
denial, and only the application's permission checks stay with the handler and API tiers.
Four facts were also corrected. The base registers TimeProvider.System with TryAdd
(BunitComponentTestBase.cs:71-75). ConfigureDataGridListPageHost has twenty-five calling test files,
not twenty-two (two in MMCA.Common, fifteen in MMCA.ADC, eight in MMCA.Store). ADC Engagement has no
repo-local subclass; its test classes derive from the shipped base directly
(MMCA.ADC/Tests/Modules/Engagement/MMCA.ADC.Engagement.UI.Tests/Pages/SessionLive/SessionLiveQuestionPanelTests.cs:20).
MMCA.Helpdesk does have a Blazor UI host
(MMCA.Helpdesk/Source/Hosts/UI/MMCA.Helpdesk.UI.Web/MMCA.Helpdesk.UI.Web.csproj:1,3,11) with no
component tests, so the tier is in three of the four repos with a Blazor UI, not in every one. Two
omissions are recorded here rather than added to the inventory: the package also ships shared
page-test bases under Pages/ (ConfirmEmailPageTestsBase, RoleAdminEditPageTestsBase,
RoleAdminListPageTestsBase), and for them it carries AwesomeAssertions and xunit.v3.extensibility.core
into every consuming test project alongside MudBlazor and Moq (MMCA.Common.Testing.UI.csproj:22-25). Citation anchors in the current-state sections were
refreshed (BunitComponentTestBase.cs, DependencyInjection.cs:121,181-184, the three central
package files, FACTS.md:42, MMCA.ADC.CI.slnf:43,50,56, the ADC Conference subclass at
BunitTestBase.cs:25-61, ADR-058).
Revision (2026-10-06)
The decision and the mechanism are unchanged. Three facts were corrected.
ConfigureDataGridListPageHosthas thirty-two calling test files, not twenty-five (three in MMCA.Common, nineteen in MMCA.ADC, ten in MMCA.Store).- The base also registers
ViewerTimeZonewithTryAdd; under loose JSInterop its browser read returns null, so pages that format instants with it render in UTC unless a test sets upgetTimeZone(MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/Infrastructure/BunitComponentTestBase.cs:78-81). - The ADC Conference subclass also registers an inert
IEventLookupService(MMCA.ADC/Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/BunitTestBase.cs:67), so its inventory now lists it. The facts recorded in the 2026-10-01 revision now sit atBunitComponentTestBase.cs:57-63(authorization) and:72-76(TimeProvider).
Citation anchors in the current-state sections were re-verified against current source and refreshed
(BunitComponentTestBase.cs, MMCA.Common.Testing.UI.csproj, DependencyInjection.cs:159,227-230,
MMCA.Common/Directory.Packages.props:234-235,240, MMCA.Common.UI.Tests.csproj:27, the ADC
Conference subclass at BunitTestBase.cs:24-68).
Revision (2026-10-07)
The decision and the mechanism are unchanged. Re-verified against current source: bunit is
still pinned at 2.11.3 in all three central package files, and the AngleSharp pin is still named
only in MMCA.Common's. Only the MMCA.Store anchor for the bunit pin moved.
- Anchors re-verified against current source:
MMCA.Store/Directory.Packages.props:54(was:58, in the Decision bullet and the per-repo pin trade-off),MMCA.Common/Directory.Packages.props:234-235,240andMMCA.ADC/Directory.Packages.props:32(unchanged).
Revision (2026-10-21)
The decision and the mechanism are unchanged. Re-verified against current source: the AngleSharp
pin is still named only in MMCA.Common's central package file (no ADC or Store props or project file
names it), and six of the seven Infrastructure/*.cs helper-inventory anchors are exact (only
MarkupSnapshot.cs moved). The bunit number, the pin's file count, the helper's call-site count and
two inventories moved.
bunitis pinned at 2.12.5, not 2.11.3, and the files still agree (MMCA.Common/Directory.Packages.props:242,MMCA.ADC/Directory.Packages.props:32,MMCA.Store/Directory.Packages.props:54).- A fourth central package file names it:
MMCA.Helpdesk/Directory.Packages.props:32pinsbunit2.12.5 and:94pinsMMCA.Common.Testing.UI, although no Helpdesk project references either package. The per-repo pin trade-off now says four files have to agree, not three. ConfigureDataGridListPageHosthas thirty-eight calling test files, not thirty-two (five in MMCA.Common, twenty-three in MMCA.ADC, ten in MMCA.Store). One further ADC file names the helper only in a comment and is not counted.AddCommonUiFacadesregisters a third facade,IPendingToastService->PendingToastService(MMCA.Common/Source/Presentation/MMCA.Common.UI/DependencyInjection.cs:242), which the Decision bullet now lists. It is not Mud-backed (it wrapssessionStoragethroughIJSRuntime,MMCA.Common/Source/Presentation/MMCA.Common.UI/Services/PendingToastService.cs:7-13), so the real-path claim is scoped to the toast and dialog pair.- The viewport substitution is a default, not unconditional:
ConfigureDataGridListPageHosttakesstubViewport(default true), andfalsekeeps MudBlazor's real service (MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/Infrastructure/BunitComponentTestBase.cs:114,119-122). - The package also ships
FieldErrorAccessibilityExtensions, which asserts that a field's validation error is exposed to assistive technology (MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/Infrastructure/FieldErrorAccessibilityExtensions.cs:12); the helper inventory now lists it. The inventory also now lists the three shared page-test bases underPages/and theAwesomeAssertions/xunit.v3.extensibility.corereferences they bring (MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/MMCA.Common.Testing.UI.csproj:24-27), which the 2026-10-01 revision recorded outside it. - Anchors re-verified against current source:
MMCA.Common/Directory.Packages.props:241-242,247(were:234-235,240),DependencyInjection.cs:167(was:159),DependencyInjection.cs:238-242(was:227-230),Infrastructure/MarkupSnapshot.cs:22(was:21),MMCA.Store/Directory.Packages.props:54andMMCA.ADC/Directory.Packages.props:32(unchanged).
Revision (2026-10-26)
The decision and the mechanism are unchanged. Re-verified against current source: the AngleSharp
pin is still named only in MMCA.Common's central package file (no ADC or Store props, project or
targets file names it) and still reaches consumers through the package's direct reference
(MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/MMCA.Common.Testing.UI.csproj:15-17); no Helpdesk
project references bunit or the package; the "fifteen hand-rolled copies" remark still stands
(BunitComponentTestBase.cs:92-93). The bunit number, the AngleSharp number and the helper's
call-site count moved.
bunitis pinned at 2.13.3, not 2.12.5, and all four central package files agree (MMCA.Common/Directory.Packages.props:298,MMCA.ADC/Directory.Packages.props:32,MMCA.Store/Directory.Packages.props:59,MMCA.Helpdesk/Directory.Packages.props:32).ConfigureDataGridListPageHosthas thirty-nine calling test files, not thirty-eight (five in MMCA.Common, twenty-four in MMCA.ADC, ten in MMCA.Store, none in MMCA.Helpdesk). One ADC file calls it twice, and one further ADC file names the helper only in a comment and is not counted.AngleSharpis pinned at 1.8.6 (MMCA.Common/Directory.Packages.props:306), the floorbunit2.13.3 declares (MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/packages.lock.json:17-23). The pin is coupled tobunit, not only to the advisory: 1.8.6 underbunit2.12.5 throws aTypeLoadExceptionin everyFind, so the two move together (MMCA.Common/Directory.Packages.props:303-305). The per-repo pin trade-off now says so.- Anchors re-verified against current source:
MMCA.Common/Directory.Packages.props:297-298,306(were:241-242,247),MMCA.Store/Directory.Packages.props:59(was:54),MMCA.Common/FACTS.md:19-20,46(was:19,42),058-runtime-conformance-suites-as-a-package.md:14-22,30-32(was:12-16,24-27),101-common-metapackage.md:58-61(was:55),MMCA.ADC/Directory.Packages.props:32andMMCA.Helpdesk/Directory.Packages.props:32,94(unchanged).
Revision (2026-11-23)
The decision and the mechanism are unchanged. Re-verified against current source: the base's
constructor, authorization wiring, freeze rule and helper body behave as recorded; the AngleSharp
pin is still named only in MMCA.Common's central package file; no Helpdesk project references
bunit or the package; all six consumer UI test projects still sit in the gating CI subsets. The
bunit and AngleSharp numbers, the helper's call-site count, two subclass descriptions and the
page-test base inventory moved, and one recorded remark is gone from source.
bunitis pinned at 2.15.2, not 2.13.3, and all four central package files agree (MMCA.Common/Directory.Packages.props:375,MMCA.ADC/Directory.Packages.props:79,MMCA.Store/Directory.Packages.props:79,MMCA.Helpdesk/Directory.Packages.props:29).AngleSharpis pinned at 1.10.5 (MMCA.Common/Directory.Packages.props:383), which is now above the 1.10.1 floorbunit2.15.2 declares, not equal to it (MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/packages.lock.json:5-10,23). The per-repo pin trade-off now says the pin is constrained bybunitrather than equal to its floor.ConfigureDataGridListPageHosthas forty-six calling test files, not thirty-nine (eight in MMCA.Common, twenty-eight in MMCA.ADC, ten in MMCA.Store, none in MMCA.Helpdesk). One ADC file calls it twice (MMCA.ADC/Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/Pages/Questions/QuestionListTests.cs), and the package's ownDataGridListPageTestsBasecalls it on first render (MMCA.Common/Source/Hosting/MMCA.Common.Testing.UI/Pages/DataGridListPageTestsBase.cs:143).- The "fifteen hand-rolled copies" remark that the 2026-10-26 revision recorded no longer exists in
BunitComponentTestBase.cs; the Decision bullet no longer cites it. - The package ships six page-test bases, not three:
DataGridListPageTestsBase<TPage, TDto>(Pages/DataGridListPageTestsBase.cs:28),DetailPageLoadStateTestsBase<TPage, TId, TDto>(Pages/DetailPageLoadStateTestsBase.cs:27) andSignInLinkPageTestsBase(Pages/SignInLinkPageTestsBase.cs:29) join the three already listed. - Store Catalog's subclass is no longer empty: it registers the device-capability defaults and the
browser-origin
IPublicLinkBuilder(MMCA.Store/Tests/Modules/Catalog/MMCA.Store.Catalog.UI.Tests/BunitTestBase.cs:21-22). - ADC Conference's registrations moved into an internal static
AddConferencePageDefaultsthat the constructor calls and that a test class deriving a framework page base calls itself (MMCA.ADC/Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/BunitTestBase.cs:26,34-78); the inventory is unchanged and itsTimeProvider.Systemregistration is at:55. - Anchors re-verified against current source:
MMCA.Common/Directory.Packages.props:374-375,376-382,383(were:297-298,303-305,306),MMCA.ADC/Directory.Packages.props:79(was:32),MMCA.Store/Directory.Packages.props:79(was:59),MMCA.Helpdesk/Directory.Packages.props:29,96(were:32,94),BunitComponentTestBase.cs:89-92,110-128,113,115-116,118-121,124,127,131,133-137,139-151,153-164,166-170,172-184(the freeze rule ends one line sooner, theMudProviderHandlesrange now starts at its doc summary:166and ends at:170(was:168-171), and every other range sits one line earlier than recorded),DependencyInjection.cs:185,276-280(were:167,238-242),Infrastructure/HttpTestDoubles.cs:11(was:12),MMCA.Common.UI.Tests.csproj:23(was:27),MMCA.Common/Tests/Presentation/MMCA.Common.UI.Tests/BunitTestBase.cs:25-46(was:25-42),SessionLiveQuestionPanelTests.cs:22(was:20),MMCA.ADC/MMCA.ADC.CI.slnf:46,53,59(were:43,50,56),MMCA.Common/FACTS.md:16-18,20-21,51(were:15-17,19-20,46),058-runtime-conformance-suites-as-a-package.md:16-25,32-35(was:14-22,30-32),101-common-metapackage.md:63-66(was:58-61), andMMCA.Store/MMCA.Store.CI.slnf:40,46,52(unchanged).