test: dedupe the nested test doubles into one shared file

TestDbFactory was redeclared as a private nested class in 40 test files,
NullServiceProvider and StubNotesApi in 14 each, DefaultStub in 5 — 73
declarations, all semantically identical (StubNotesApi differed only in
formatting and type qualification). They now live in TestDoubles.cs next to the
existing StubWorkerClient, which was already the shared-double pattern in this
project.
This commit is contained in:
mika kuns
2026-08-26 10:11:58 +02:00
parent 81994aadca
commit 76d836a278
43 changed files with 36 additions and 428 deletions
@@ -30,7 +30,7 @@ public class WorktreesOverviewBatchMergeTests
Assert.False(row.IsConflict);
}
private static WorktreesOverviewModalViewModel NewVm(IMergeCoordinator? merge = null) =>
private static WorktreesOverviewModalViewModel NewVm(MergeCoordinator? merge = null) =>
new(new ClaudeDo.Ui.Services.WorkerClient("http://127.0.0.1:1/hub"), () => null!,
merge ?? new ClaudeDo.Ui.Services.MergeCoordinator());