Commit d5a69e9
committed
Depend on IMessageWatchdog so QueueManager can be stubbed in tests
Extract an IMessageWatchdog interface (just RemoveMessages) that MessageWatchdog
implements, and have QueueManager depend on it. The hand-rolled QueueManager
tests now pass a one-line no-op stub instead of constructing a fully wired
MessageWatchdog. Production still injects the real watchdog (non-null).1 parent a8f1217 commit d5a69e9
4 files changed
Lines changed: 27 additions & 19 deletions
File tree
- Core
- Cleipnir.ResilientFunctions.Tests/Messaging/TestTemplates
- Cleipnir.ResilientFunctions
- CoreRuntime/Watchdogs
- Queuing
Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
| |||
587 | 582 | | |
588 | 583 | | |
589 | 584 | | |
590 | | - | |
| 585 | + | |
591 | 586 | | |
592 | 587 | | |
593 | 588 | | |
| |||
651 | 646 | | |
652 | 647 | | |
653 | 648 | | |
654 | | - | |
| 649 | + | |
655 | 650 | | |
656 | 651 | | |
657 | 652 | | |
| |||
713 | 708 | | |
714 | 709 | | |
715 | 710 | | |
716 | | - | |
| 711 | + | |
717 | 712 | | |
718 | 713 | | |
719 | 714 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments