Add XML docs required by CommentChecker fixes
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m13s
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m13s
This commit is contained in:
@@ -7,6 +7,9 @@ namespace ZB.MOM.WW.CBDDC.Network.Tests;
|
||||
|
||||
public class MultiDatasetSyncOrchestratorTests
|
||||
{
|
||||
/// <summary>
|
||||
/// Verifies multi-dataset sync is disabled, only the primary context is created.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Constructor_WhenMultiDatasetDisabled_ShouldOnlyCreatePrimaryContext()
|
||||
{
|
||||
@@ -27,6 +30,9 @@ public class MultiDatasetSyncOrchestratorTests
|
||||
datasetIds[0].ShouldBe(DatasetId.Primary);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies that failures in one orchestrator do not prevent remaining contexts from starting and stopping.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task StartStop_WhenOneDatasetThrows_ShouldContinueOtherDatasets()
|
||||
{
|
||||
@@ -82,9 +88,19 @@ public class MultiDatasetSyncOrchestratorTests
|
||||
private sealed class TrackingSyncOrchestrator(Exception? startException = null, Exception? stopException = null)
|
||||
: ISyncOrchestrator
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of times <see cref="Start" /> has been called.
|
||||
/// </summary>
|
||||
public int StartCalls { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of times <see cref="Stop" /> has been called.
|
||||
/// </summary>
|
||||
public int StopCalls { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Starts the orchestrator.
|
||||
/// </summary>
|
||||
public Task Start()
|
||||
{
|
||||
StartCalls++;
|
||||
@@ -92,6 +108,9 @@ public class MultiDatasetSyncOrchestratorTests
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Stops the orchestrator.
|
||||
/// </summary>
|
||||
public Task Stop()
|
||||
{
|
||||
StopCalls++;
|
||||
|
||||
Reference in New Issue
Block a user