Commit Graph

3 Commits

Author SHA1 Message Date
Denis Urs Rudolph fafafae5d1 Fix integration tests - shared database across test classes
- Update CustomWebApplicationFactory to use static database name
- Ensure all tests share the same in-memory database instance
- This fixes authentication flow tests where registration must persist for login
- All 12 integration tests now pass
2026-04-09 21:20:06 +02:00
Denis Urs Rudolph 0cdb391393 Fix integration test infrastructure
- Create CustomWebApplicationFactory to properly handle DI
- Fix IntegrationTestBase to use proper service scope pattern
- Update AuthIntegrationTests and EventsIntegrationTests to use CustomWebApplicationFactory
- Resolve EF Core provider conflict by using ConfigureWebHost override

Tests now run: 7 passed, 6 failed (auth/response format issues)
2026-04-09 21:11:03 +02:00
Denis Urs Rudolph 3421818d41 Add integration test infrastructure
- Create backend integration test project with xUnit
- Add required packages: TestHost, Mvc.Testing, EF InMemory, FluentAssertions
- Add project reference to backend API
- Create IntegrationTestBase class with WebApplicationFactory setup
- Install Supertest for HTTP integration testing
2026-04-08 20:23:48 +02:00