From 753d0705357d3780515df03703813c9e3aae1d3d Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 18 Aug 2026 07:24:39 -0400 Subject: [PATCH] style(worker-tests): field ordering in FakeRuntimeSession MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refreshStaActivityOnCapture was declared between DispatchAsync and the property that wraps it, rather than with the other instance fields. Moved up to the field block per the member ordering in docs/style-guides/CSharpStyleGuide.md. Declaration move only — no behavior, no other edits. --- .../TestSupport/FakeRuntimeSession.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/FakeRuntimeSession.cs b/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/FakeRuntimeSession.cs index 0f89658..456205d 100644 --- a/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/FakeRuntimeSession.cs +++ b/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/FakeRuntimeSession.cs @@ -42,6 +42,7 @@ internal sealed class FakeRuntimeSession : IWorkerRuntimeSession // disposed SemaphoreSlim would turn that shutdown into an ObjectDisposedException. private readonly SemaphoreSlim eventSignal = new(0, 1); private TimeSpan? lastWaitForEventsTimeout; + private bool refreshStaActivityOnCapture; private WorkerRuntimeHeartbeatSnapshot snapshot = new( DateTimeOffset.UtcNow, pendingCommandCount: 0, @@ -138,8 +139,6 @@ internal sealed class FakeRuntimeSession : IWorkerRuntimeSession }); } - private bool refreshStaActivityOnCapture; - /// /// When set, stamps the snapshot's /// LastStaActivityUtc with the capture time and leaves every other field as the last