Apply code style formatting and restore partial modifiers on Avalonia views

Linter/formatter pass across the full codebase. Restores required partial
keyword on AXAML code-behind classes that the formatter incorrectly removed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-03-31 07:58:13 -04:00
parent 55ef854612
commit 41a6b66943
221 changed files with 4274 additions and 3823 deletions

View File

@@ -10,16 +10,16 @@ using ZB.MOM.WW.LmxOpcUa.Tests.Helpers;
namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
{
/// <summary>
/// Verifies the lightweight HTTP dashboard host that exposes bridge status to operators.
/// Verifies the lightweight HTTP dashboard host that exposes bridge status to operators.
/// </summary>
public class StatusWebServerTests : IDisposable
{
private readonly StatusWebServer _server;
private readonly HttpClient _client;
private readonly int _port;
private readonly StatusWebServer _server;
/// <summary>
/// Starts a status web server on a random test port and prepares an HTTP client for endpoint assertions.
/// Starts a status web server on a random test port and prepares an HTTP client for endpoint assertions.
/// </summary>
public StatusWebServerTests()
{
@@ -33,7 +33,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Disposes the test HTTP client and stops the status web server.
/// Disposes the test HTTP client and stops the status web server.
/// </summary>
public void Dispose()
{
@@ -42,7 +42,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the dashboard root responds with HTML content.
/// Confirms that the dashboard root responds with HTML content.
/// </summary>
[Fact]
public async Task Root_ReturnsHtml200()
@@ -53,7 +53,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the JSON status endpoint responds successfully.
/// Confirms that the JSON status endpoint responds successfully.
/// </summary>
[Fact]
public async Task ApiStatus_ReturnsJson200()
@@ -64,7 +64,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the health endpoint returns HTTP 200 when the bridge is healthy.
/// Confirms that the health endpoint returns HTTP 200 when the bridge is healthy.
/// </summary>
[Fact]
public async Task ApiHealth_Returns200WhenHealthy()
@@ -77,7 +77,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that unknown dashboard routes return HTTP 404.
/// Confirms that unknown dashboard routes return HTTP 404.
/// </summary>
[Fact]
public async Task UnknownPath_Returns404()
@@ -87,7 +87,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that unsupported HTTP methods are rejected with HTTP 405.
/// Confirms that unsupported HTTP methods are rejected with HTTP 405.
/// </summary>
[Fact]
public async Task PostMethod_Returns405()
@@ -97,7 +97,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that cache-control headers disable caching for dashboard responses.
/// Confirms that cache-control headers disable caching for dashboard responses.
/// </summary>
[Fact]
public async Task CacheHeaders_Present()
@@ -108,7 +108,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the /health route returns an HTML health page.
/// Confirms that the /health route returns an HTML health page.
/// </summary>
[Fact]
public async Task HealthPage_ReturnsHtml200()
@@ -122,7 +122,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that /api/health returns rich JSON with component health details.
/// Confirms that /api/health returns rich JSON with component health details.
/// </summary>
[Fact]
public async Task ApiHealth_ReturnsRichJson()
@@ -137,7 +137,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the server can be started and stopped cleanly.
/// Confirms that the server can be started and stopped cleanly.
/// </summary>
[Fact]
public void StartStop_DoesNotThrow()
@@ -150,4 +150,4 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
server2.Stop();
}
}
}
}