ConsumerFixture
AppSurfaceDocsConsumerFixtureHost
SourceCreates the real ASP.NET Core consumer host used to verify AppSurface Docs Razor Class Library precedence.
Remarks
The fixture deliberately owns conventional Views/_ViewStart.cshtml
and Views/Shared/_Layout.cshtml
files. AppSurface Docs views must retain their package shell when this host is the application, while hosts remain free to deliberately override the package-specific layout path.
RunAsync
Task RunAsync(string[] args)
Runs the consumer fixture until the host shuts down.
Parameters
-
argsCommand-line arguments forwarded to AppSurface Web startup.
Returns
A task that completes when the host exits.
CreateBuilder
IHostBuilder CreateBuilder(string[] args, IEnvironmentProvider? environmentProvider = null)
Creates a consumer host builder without starting it.
Parameters
-
argsCommand-line arguments forwarded to AppSurface Web startup. -
environmentProviderOptional environment provider used by AppSurface startup decisions before the generic host is built.
Returns
A configured host builder whose application identity is the consumer fixture assembly.
ConsumerFixtureDocsCompositionModule
SourceMaps either the fixture's legacy Docs surface or its named public/internal product pair.
Remarks
This module is a dependency rather than the fixture root because WebStartup{TModule}
maps dependency endpoints before root endpoints. That keeps RazorWire transport mapping ahead of Docs mapping and makes legacy Docs service registration precede the consumer theme-preference adapter.
ConsumerFixtureProofAuth
SourceNames the deliberately simple header-authentication contract used only by the executable multi-instance consumer fixture.
Remarks
The fixture demonstrates where a real host supplies authentication and authorization. It is not a production authentication implementation: a request carrying UserHeaderName
is treated as an authenticated reader so automated walkthroughs can prove the public/internal route boundary without an external identity provider.