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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user