Arnaud Dartois
|
3fc42be4b2
|
test(agent): add unit tests for AgentState, AgentHealthCheck, AgentRegistrationService
13 tests covering:
- AgentState file persistence (save, load, corrupt file, empty ID, clear)
- AgentHealthCheck (healthy, degraded, unhealthy states)
- AgentRegistrationService (successful registration, retry on failure,
all retries exhausted, reuse existing identity, offline heartbeat on stop)
|
2026-07-18 14:16:13 +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 |
|