Three issues fixed:
- Camera.AssignAgent(Guid.Empty) violated FK constraint; changed to
nullable Guid? and pass null on camera release
- Test fixtures now check DATABASE_URL env var first, falling back to
Testcontainers locally (CI has no Docker socket)
- Added database truncation before each test via IAsyncLifetime to
prevent shared state between test methods (InMemory was fresh per test,
real PostgreSQL persists data)
- Supprime InMemory de tous les .csproj (Infrastructure, Domain.Tests, IntegrationTests)\n- Supprime le branchement Database:Provider=InMemory de DependencyInjection.cs\n (plus que du PostgreSQL natif)\n- Infrastructure.Tests: CameraAssignment + CameraEvent tests -> Testcontainers\n- PostgreSqlContainerFixture ajoute aux Infrastructure.Tests\n- appsettings.Testing.json: retire Database:Provider et Hangfire:Enabled\n- 4 tests echouent encore: bugs pre-existants masques par InMemory\n (FK non respectees, donnees de test erronees)\n\nTests: 222/226 passed (4 pre-existants lies aux FK)