From b8ee6c64608d248b832ad227a3e2a69c46b7fca5 Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Thu, 16 Jul 2026 11:40:14 +0200 Subject: [PATCH] fix(acceptance): implement WithdrawBeoordelingAsync on the in-memory user-task client (refs #12) The S-11b port change (WithdrawBeoordelingAsync + BeoordelingTask.ExecutionId) broke the solution build: the acceptance in-memory IUserTaskClient still used the old signature. Implement the new member and carry an executionId. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/acceptance/Support/InMemoryDomainPorts.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/Support/InMemoryDomainPorts.cs b/tests/acceptance/Support/InMemoryDomainPorts.cs index b5714ef..ac7e2e1 100644 --- a/tests/acceptance/Support/InMemoryDomainPorts.cs +++ b/tests/acceptance/Support/InMemoryDomainPorts.cs @@ -50,8 +50,10 @@ public sealed class InMemoryUserTaskClient : IUserTaskClient private readonly List _open = []; public (string TaskId, BeoordelingsBesluit Besluit)? Completed { get; private set; } + public string? WithdrawnExecutionId { get; private set; } - public void Open(RegistrationId registrationId) => _open.Add(new BeoordelingTask($"task-{registrationId}", registrationId)); + public void Open(RegistrationId registrationId) => + _open.Add(new BeoordelingTask($"task-{registrationId}", $"exec-{registrationId}", registrationId)); public Task> GetOpenBeoordelingenAsync(CancellationToken ct = default) => Task.FromResult>(_open); @@ -64,6 +66,13 @@ public sealed class InMemoryUserTaskClient : IUserTaskClient _open.RemoveAll(t => t.TaskId == taskId); return Task.CompletedTask; } + + public Task WithdrawBeoordelingAsync(string executionId, CancellationToken ct = default) + { + WithdrawnExecutionId = executionId; + _open.RemoveAll(t => t.ExecutionId == executionId); + return Task.CompletedTask; + } } /// An in-memory registration store for the domain acceptance scenario.