Reformat/cleanup
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m10s

This commit is contained in:
Joseph Doherty
2026-02-21 07:53:53 -05:00
parent c6f6d9329a
commit 7ebc2cb567
160 changed files with 7258 additions and 7262 deletions

View File

@@ -12,7 +12,7 @@ namespace ZB.MOM.WW.CBDDC.Hosting.Tests;
public class CBDDCHostingExtensionsTests
{
/// <summary>
/// Verifies that adding CBDDC hosting throws when the service collection is null.
/// Verifies that adding CBDDC hosting throws when the service collection is null.
/// </summary>
[Fact]
public void AddCBDDCHosting_WithNullServices_ThrowsArgumentNullException()
@@ -22,7 +22,7 @@ public class CBDDCHostingExtensionsTests
}
/// <summary>
/// Verifies that adding CBDDC hosting throws when the configuration delegate is null.
/// Verifies that adding CBDDC hosting throws when the configuration delegate is null.
/// </summary>
[Fact]
public void AddCBDDCHosting_WithNullConfigure_ThrowsArgumentNullException()
@@ -33,7 +33,7 @@ public class CBDDCHostingExtensionsTests
}
/// <summary>
/// Verifies that single-cluster hosting registers expected services and configured options.
/// Verifies that single-cluster hosting registers expected services and configured options.
/// </summary>
[Fact]
public void AddCBDDCHostingSingleCluster_RegistersExpectedServicesAndOptions()
@@ -73,7 +73,7 @@ public class CBDDCHostingExtensionsTests
}
/// <summary>
/// Verifies that single-cluster hosting uses default options when no configuration delegate is provided.
/// Verifies that single-cluster hosting uses default options when no configuration delegate is provided.
/// </summary>
[Fact]
public void AddCBDDCHostingSingleCluster_WithNullConfigure_UsesDefaults()
@@ -90,17 +90,14 @@ public class CBDDCHostingExtensionsTests
}
/// <summary>
/// Verifies that health check registration is skipped when health checks are disabled.
/// Verifies that health check registration is skipped when health checks are disabled.
/// </summary>
[Fact]
public void AddCBDDCHosting_WithHealthChecksDisabled_DoesNotRegisterCBDDCHealthCheck()
{
var services = new ServiceCollection();
services.AddCBDDCHosting(options =>
{
options.EnableHealthChecks = false;
});
services.AddCBDDCHosting(options => { options.EnableHealthChecks = false; });
services.Any(d => d.ServiceType == typeof(IConfigureOptions<HealthCheckServiceOptions>))
.ShouldBeFalse();
@@ -121,4 +118,4 @@ public class CBDDCHostingExtensionsTests
d.ImplementationType == typeof(THostedService))
.ShouldBeTrue();
}
}
}