docs(tests): fix CommentChecker findings across tests/ — 13,392 → 0 (repo-wide scan clean)

Comment/XML-doc changes only:
- add summaries to ~10k test methods, fixtures, fakes and helpers
  (+ <param> on theories, <returns> on async Task methods,
  <inheritdoc/> on interface implementations the checker can resolve)
- strip ~2.6k project-tracking references (WP*, P*-*, row-NN, Task N,
  #NN, Component-0NN) from comments, keeping the explanatory text;
  reword false positives in comments only
- real docs on fakes implementing BCL/library interfaces
  (IDisposable, ILogger, IOptionsMonitor, IAsyncLifetime)
- reword the last 5 src/ false positives (CWE-1236, failures-1,
  year-0001, M365)

Only non-comment edits: four one-line nested classes split across lines
so members can carry docs. Build 0 errors / 0 warnings.
This commit is contained in:
Joseph Doherty
2026-10-07 15:05:49 -04:00
parent 0ffd4bdbea
commit 513fa1aa16
998 changed files with 17896 additions and 2395 deletions
@@ -39,6 +39,7 @@ public sealed class RoundTripTests : IDisposable
{
private readonly ServiceProvider _provider;
/// <summary>Initializes a new instance of the <see cref="RoundTripTests"/> class with an in-memory database and the Transport services.</summary>
public RoundTripTests()
{
var services = new ServiceCollection();
@@ -66,7 +67,7 @@ public sealed class RoundTripTests : IDisposable
services.AddScoped<IExternalSystemRepository, ExternalSystemRepository>();
services.AddScoped<INotificationRepository, NotificationRepository>();
services.AddScoped<IInboundApiRepository, InboundApiRepository>();
// M8: DependencyResolver now injects ISiteRepository to walk the
// DependencyResolver injects ISiteRepository to walk the
// site/data-connection/instance closure; register it or activation fails.
services.AddScoped<ISiteRepository, SiteRepository>();
services.AddScoped<IAuditCorrelationContext, AuditCorrelationContext>();
@@ -76,8 +77,11 @@ public sealed class RoundTripTests : IDisposable
_provider = services.BuildServiceProvider();
}
/// <summary>Disposes the underlying service provider.</summary>
public void Dispose() => _provider.Dispose();
/// <summary>Verifies that exporting, wiping and re-importing a bundle restores the original state.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Export_then_wipe_then_import_restores_state()
{
@@ -236,7 +240,7 @@ public sealed class RoundTripTests : IDisposable
.Include(t => t.Compositions)
.SingleAsync(t => t.Name == "Pump");
Assert.Equal("composes BaseDevice", pump.Description);
// FU-B / #39 — composition graph IS restored on import. The bundle
// Composition graph IS restored on import. The bundle
// carried Pump composing BaseDevice via InstanceName="base"; the
// importer's second pass (ResolveCompositionEdgesAsync) re-resolved
// ComposedTemplateName to BaseDevice's new id after the template
@@ -302,6 +306,8 @@ public sealed class RoundTripTests : IDisposable
Assert.NotEqual(Guid.Empty, result.BundleImportId);
}
/// <summary>Verifies that exporting and re-importing a bundle restores the SMS configuration with its secret intact.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Export_then_import_restores_sms_config_with_secret_intact()
{