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

@@ -1,6 +1,7 @@
using System;
using Shouldly;
using Xunit;
using ZB.MOM.WW.LmxOpcUa.Host.Configuration;
using ZB.MOM.WW.LmxOpcUa.Host.Domain;
using ZB.MOM.WW.LmxOpcUa.Host.GalaxyRepository;
using ZB.MOM.WW.LmxOpcUa.Host.Metrics;
@@ -10,12 +11,12 @@ using ZB.MOM.WW.LmxOpcUa.Tests.Helpers;
namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
{
/// <summary>
/// Verifies the HTML, JSON, and health snapshots generated for the operator status dashboard.
/// Verifies the HTML, JSON, and health snapshots generated for the operator status dashboard.
/// </summary>
public class StatusReportServiceTests
{
/// <summary>
/// Confirms that the generated HTML contains every dashboard panel expected by operators.
/// Confirms that the generated HTML contains every dashboard panel expected by operators.
/// </summary>
[Fact]
public void GenerateHtml_ContainsAllPanels()
@@ -32,7 +33,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the generated HTML includes the configured auto-refresh meta tag.
/// Confirms that the generated HTML includes the configured auto-refresh meta tag.
/// </summary>
[Fact]
public void GenerateHtml_ContainsMetaRefresh()
@@ -43,7 +44,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the connection panel renders the current runtime connection state.
/// Confirms that the connection panel renders the current runtime connection state.
/// </summary>
[Fact]
public void GenerateHtml_ConnectionPanel_ShowsState()
@@ -54,7 +55,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the Galaxy panel renders the bridged Galaxy name.
/// Confirms that the Galaxy panel renders the bridged Galaxy name.
/// </summary>
[Fact]
public void GenerateHtml_GalaxyPanel_ShowsName()
@@ -65,7 +66,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the operations table renders the expected performance metric headers.
/// Confirms that the operations table renders the expected performance metric headers.
/// </summary>
[Fact]
public void GenerateHtml_OperationsTable_ShowsHeaders()
@@ -81,7 +82,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the footer renders timestamp and version information.
/// Confirms that the footer renders timestamp and version information.
/// </summary>
[Fact]
public void GenerateHtml_Footer_ContainsTimestampAndVersion()
@@ -93,7 +94,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the generated JSON includes the major dashboard sections.
/// Confirms that the generated JSON includes the major dashboard sections.
/// </summary>
[Fact]
public void GenerateJson_Deserializes()
@@ -111,7 +112,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the report service reports healthy when the runtime connection is up.
/// Confirms that the report service reports healthy when the runtime connection is up.
/// </summary>
[Fact]
public void IsHealthy_WhenConnected_ReturnsTrue()
@@ -121,7 +122,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Confirms that the report service reports unhealthy when the runtime connection is down.
/// Confirms that the report service reports unhealthy when the runtime connection is down.
/// </summary>
[Fact]
public void IsHealthy_WhenDisconnected_ReturnsFalse()
@@ -266,7 +267,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
}
/// <summary>
/// Creates a status report service preloaded with representative runtime, Galaxy, and metrics data.
/// Creates a status report service preloaded with representative runtime, Galaxy, and metrics data.
/// </summary>
/// <returns>A configured status report service for dashboard assertions.</returns>
private static StatusReportService CreateService()
@@ -295,7 +296,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
{
var mxClient = new FakeMxAccessClient();
var galaxyStats = new GalaxyRepositoryStats { GalaxyName = "TestGalaxy", DbConnected = true };
var redundancyConfig = new Host.Configuration.RedundancyConfiguration
var redundancyConfig = new RedundancyConfiguration
{
Enabled = true,
Mode = "Warm",
@@ -307,4 +308,4 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.Status
return sut;
}
}
}
}