refactor(tests): share StubWorkerClient between Ui.Tests and Worker.Tests

Worker.Tests carried its own hand-rolled FakeWorkerClient implementing the
whole IWorkerClient surface, duplicating StubWorkerClient in Ui.Tests. Every
hub-signature change had to be applied twice. Link StubWorkerClient.cs into
Worker.Tests via a csproj Compile Include and subclass it there; add
SetTaskStatusCalls tracking to the shared stub (the one behavior Worker.Tests
needed that Ui.Tests didn't have).
This commit is contained in:
Mika Kuns
2026-09-02 12:17:00 +02:00
parent 56bc1651a8
commit 9f90e75a85
3 changed files with 12 additions and 183 deletions
@@ -22,6 +22,10 @@
<Using Include="ClaudeDo.Data.Wire" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\ClaudeDo.Ui.Tests\StubWorkerClient.cs" Link="TestDoubles\StubWorkerClient.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\ClaudeDo.Worker\ClaudeDo.Worker.csproj" />
<ProjectReference Include="..\..\src\ClaudeDo.Data\ClaudeDo.Data.csproj" />