Reformat/cleanup
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m10s
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m10s
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user