Commit 24a2834
fix: 修正 BorrowingServiceTest 建構子參數不符(closes #61)
BorrowingService 在新增 MANAGER 角色功能後,建構子新增了
IUserRepository 與 ViolationService 兩個參數,但測試仍使用
舊的 2 參數版本,導致 CI testCompile 失敗。
補上 InMemoryUserRepository,ViolationService 傳 null
(測試情境無需違規偵測邏輯)。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c878f45 commit 24a2834
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments