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)
This commit is contained in:
Denis Urs Rudolph
2026-04-09 21:11:03 +02:00
parent 13c9c8aa68
commit 0cdb391393
439 changed files with 6440 additions and 31 deletions
@@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("backend.Tests.Integration")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3421818d414ad1a8389553b9c193a05c84cecc96")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+13c9c8aa68a452b4b3b25844b868cc510dea3c8b")]
[assembly: System.Reflection.AssemblyProductAttribute("backend.Tests.Integration")]
[assembly: System.Reflection.AssemblyTitleAttribute("backend.Tests.Integration")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
// Generated by the MSBuild WriteCodeFragment class.