Commit Graph
5 Commits
Author SHA1 Message Date
Arnaud Dartois d6c7ca1194 fix(web): bindings MudCheckBox/MudSwitch @bind-Value (au lieu de @bind-Checked)
MudBlazor 9.x ignore silencieusement l'attribut inconnu 'Checked'
(CaptureUnmatchedValues) : les checkboxes de rôles et les switches de
configuration ne se liaient jamais. Passage à l'API Value/ValueChanged
+ mise à jour MudBlazor 9.1.0 → 9.8.0 (Web + tests). Vérifié en réel :
la case Admin est cochée à l'ouverture du dialog utilisateur.
2026-08-10 16:46:08 +02:00
Arnaud Dartois 34a3dd4232 test(web): tests bUnit des pages IHM + infrastructure de test MudBlazor
Pages couvertes : Login, Register, Dashboard, SitesPage, SiteDetail,
CamerasPage (+ AuthState, HeimdallAuthStateProvider) — 105 tests Web verts.

Infrastructure nécessaire pour rendre les pages testables avec bUnit :
- MudTestBase : JSInterop en mode Loose + wrapper générique
  IAsyncDisposable→IDisposable (Castle DynamicProxy) pour les services
  MudBlazor (PopoverService, PointerEventsNoneService...) qui cassent le
  Dispose synchrone de bUnit
- HostWithProviders.razor : fournit MudPopoverProvider + MudDialogProvider
  — sans eux les MudDialog inline des pages ne sont jamais rendus
- PageTestBase.RenderPage<T> : rend les pages dans ce host
- bunit 2.7.2 → 2.9.0, AngleSharp → 1.7.0, SDK Razor pour les .razor locaux

Correctifs de tests : ShouldContain avec prédicat (sous-chaîne au lieu
d'égalité stricte sur les messages snackbar), .Input()/.Change() selon
Immediate des champs, format P0 (87% sans espace), index des boutons
d'action (copier vs supprimer).
2026-08-10 12:46:15 +02:00
Arnaud Dartois 3d7137a865 test(web): add bUnit shared component tests for PaginationBar, EmptyState, LoadingSkeleton, SectionCard 2026-07-23 19:38:30 +00:00
Arnaud Dartois cb500e0354 fix(deps): override transitive AngleSharp 1.4.0 with 1.5.2 to fix NU1902 vulnerability
bunit 2.8.4-preview transitively pulls AngleSharp 1.4.0 which has a
known moderate severity vulnerability (GHSA-pgww-w46g-26qg). Adding
a direct PackageReference to AngleSharp 1.5.2 overrides the transitive
version and resolves the CI build failure.
2026-07-18 11:41:33 +00:00
Arnaud Dartois bfb3e06bc1 feat: initialize .NET 10 Clean Architecture solution
Create Heimdall solution with 17 projects following Clean
Architecture for a maintainable and loosely coupled codebase.

src/ (9 projects):
- Domain, Domain.Primitives, Contracts (core layer, no deps)
- Application (ref. Domain) — CQRS/MediatR ready
- Infrastructure (ref. Application + Domain) — EF Core
  PostgreSQL ready
- Api, Web (Blazor), Agent, Workers (hosts, ref. Application +
  Infrastructure)

tests/ (8 projects):
- xUnit + Shouldly + NSubstitute + bUnit (Web.Tests)
- One test project per source project (Domain -> IntegrationTests)

Config: Directory.Build.props (Nullable, ImplicitUsings,
TreatWarningsAsErrors)
2026-07-16 19:09:28 +00:00