Commit graph

3 commits

Author SHA1 Message Date
Lasse Rune Hansen
57e51d0d0b test(backend/infrastructure): add unit tests for MistralConnector
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- Add Tests/Unit/Infrastructure/Services/MistralConnectorTests.cs with 20 tests
  - Constructor validation tests
  - Configuration validation tests
  - Model factory method tests
  - Rate limiter tests
  - Circuit breaker tests
- Fix HttpClient Content-Type header issue (use Accept header instead)
- All 137 unit tests passing (117 previous + 20 new)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-09 20:00:14 +02:00
Lasse Rune Hansen
0ff6218ff1 test(backend): add unit tests for LevelService, LessonService, and ProgressService
- Created LevelServiceTests.cs with 10 test methods
- Created LessonServiceTests.cs with 10 test methods
- Created ProgressServiceTests.cs with 10 test methods
- All tests use Moq for repository mocking
- Total: 30 new unit tests for application services
- All tests follow MSTest framework conventions

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-09 06:50:13 +02:00
Lasse Rune Hansen
6bcf592918 feat(backend): complete unit tests for User Authentication feature
- Fix MSTest compatibility with .NET 9.0 by upgrading to MSTest.TestFramework 4.2.3
- Move Tests directory to solution level (Tests/) to prevent test files from being compiled with GermanApp
- Update test project references to point to GermanApp/GermanApp.csproj
- Add InternalsVisibleTo attributes for test assemblies
- Make RefreshToken properties internal for testability
- Fix User.ChangeEmail null handling
- Add 46 comprehensive unit tests for User and RefreshToken domain entities
- All tests passing successfully

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 17:07:15 +02:00