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:
@@ -10,7 +10,7 @@ using ZB.MOM.WW.ScadaBridge.NotificationService;
|
||||
namespace ZB.MOM.WW.ScadaBridge.NotificationOutbox.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Task 17: Tests for <see cref="ServiceCollectionExtensions.AddNotificationOutbox"/> — the
|
||||
/// Tests for <see cref="ServiceCollectionExtensions.AddNotificationOutbox"/> — the
|
||||
/// DI registration extension for the Notification Outbox component. The extension binds
|
||||
/// <see cref="NotificationOutboxOptions"/> from the <c>ScadaBridge:NotificationOutbox</c>
|
||||
/// configuration section and registers the channel delivery adapter(s).
|
||||
@@ -44,6 +44,7 @@ public class ServiceRegistrationTests
|
||||
return services.BuildServiceProvider();
|
||||
}
|
||||
|
||||
/// <summary>Verifies that registration provides the notification outbox options with their defaults.</summary>
|
||||
[Fact]
|
||||
public void AddNotificationOutbox_RegistersNotificationOutboxOptions_WithDefaults()
|
||||
{
|
||||
@@ -56,6 +57,7 @@ public class ServiceRegistrationTests
|
||||
Assert.Equal(100, options.DispatchBatchSize);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the options section name is the notification outbox configuration path.</summary>
|
||||
[Fact]
|
||||
public void AddNotificationOutbox_OptionsSection_IsTheNotificationOutboxConfigPath()
|
||||
{
|
||||
@@ -64,6 +66,7 @@ public class ServiceRegistrationTests
|
||||
NotificationOutbox.ServiceCollectionExtensions.OptionsSection);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that registration binds the notification outbox options from configuration.</summary>
|
||||
[Fact]
|
||||
public void AddNotificationOutbox_BindsNotificationOutboxOptions_FromConfiguration()
|
||||
{
|
||||
@@ -86,6 +89,7 @@ public class ServiceRegistrationTests
|
||||
Assert.Equal(250, options.DispatchBatchSize);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that registration provides the email delivery adapter.</summary>
|
||||
[Fact]
|
||||
public void AddNotificationOutbox_RegistersEmailDeliveryAdapter()
|
||||
{
|
||||
@@ -98,6 +102,7 @@ public class ServiceRegistrationTests
|
||||
Assert.Equal(NotificationType.Email, adapter.Type);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that registration provides the SMS delivery adapter.</summary>
|
||||
[Fact]
|
||||
public void AddNotificationOutbox_RegistersSmsDeliveryAdapter()
|
||||
{
|
||||
@@ -110,6 +115,7 @@ public class ServiceRegistrationTests
|
||||
Assert.Equal(NotificationType.Sms, adapter.Type);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that registration provides both adapters as notification delivery adapters.</summary>
|
||||
[Fact]
|
||||
public void AddNotificationOutbox_RegistersBothAdapters_AsINotificationDeliveryAdapter()
|
||||
{
|
||||
@@ -132,6 +138,7 @@ public class ServiceRegistrationTests
|
||||
Assert.Contains(adapters, a => a is SmsNotificationDeliveryAdapter);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that registration provides the SMS options with their defaults.</summary>
|
||||
[Fact]
|
||||
public void AddNotificationOutbox_RegistersSmsOptions_WithDefaults()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user