Unit 1 of the slpsoftware-api feature (FR-1/FR-2/FR-3): a new Client project in the Clients solution folder, intended to eventually become the deployed API for test.slpsoftware.nl/slpsoftware.nl, hosting the same four modules as SlpModularCms.Api plus a future Offerings module. - Extracts SlpModularCms.Api/Program.cs's hosting-pipeline composition into SlpModularCms.Core.Hosting.CmsHost (ConfigureServices/ConfigurePipeline), shared by both Client projects so they cannot drift apart - Moves StaticContentExtensions.cs + WebsitePlaceholder.html from Api into Core, since CmsHost cannot live in Api but Core cannot depend on Api - Adds SlpModularCms.Api.SlpSoftware with its own isolated local dev database and dev ports (5286/7223, distinct from Api's and Api.Slave's) - Adds SlpModularCms.Api.Tests with WebApplicationFactory-based pipeline regression tests (security headers, health check, SPA fallback, rate limiting), scoped to Api per NFR Design - Adds a frontend dev:slpsoftware pnpm script mirroring dev:slave - Fixes GlobalExceptionHandler logging routine 401s (e.g. an expired/missing refresh token) as unhandled errors -- pre-existing, unrelated to this feature's own scope, found while testing the new instance Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FWyStNL2ZsjrS7FLd7xvvN
1.4 KiB
Logical Components — Unit: SlpSoftware Client Setup
Component: Pipeline Regression Test Suite
Type: Test project / test fixture (new logical component, no runtime footprint in production).
Scope: Targets SlpModularCms.Api only (Q1 = C). Exact host project (new SlpModularCms.Api.Tests vs. extending SlpModularCms.Core.Tests) is a Code Generation Planning decision — this stage fixes what it tests and against which project, not its exact file location.
Integration pattern: Microsoft.AspNetCore.Mvc.Testing's WebApplicationFactory<TEntryPoint>, using Api's own Program.cs as the entry point (requires Api's Program.cs to be accessible to the test project via the standard InternalsVisibleTo/top-level-statement partial-class pattern, if not already the case for other reasons).
Component: CmsHostOptions
Type: Plain options object (new), living in SlpModularCms.Core.Hosting alongside CmsHost.
Shape at this stage: empty (Q2 = B) — see nfr-design-patterns.md Pattern 2.
Consumers: SlpModularCms.Api/Program.cs and SlpModularCms.Api.SlpSoftware/Program.cs, both constructing a default instance.
No Other New Logical Components
This unit does not introduce queues, caches, circuit breakers, or any other infrastructure component — it is a composition/extraction of existing pieces plus the one new options object above.