Commit Graph

1 Commits

Author SHA1 Message Date
root
b3f0786503 fix: Implement proper dependency injection for PlayerService
- Removed direct Player model imports from service methods
- Added InMemoryQueryResult for mock-compatible filtering/sorting
- Added RealPlayerRepository for real DB operations
- Service now accepts AbstractPlayerRepository via constructor
- Filtering and sorting work with both mocks and real DB
- Tests can inject MockPlayerRepository for full test coverage

This enables true unit testing without database dependencies.
2026-02-03 16:45:46 +00:00