< Summary

Information
Class: Elsa.Common.ShellFeatures.SystemClockFeature
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/ShellFeatures/SystemClockFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 22
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ConfigureServices(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/ShellFeatures/SystemClockFeature.cs

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Common.Services;
 3using Elsa.Platform.PackageManifest.Generator.Hints;
 4using Microsoft.Extensions.DependencyInjection;
 5
 6namespace Elsa.Common.ShellFeatures;
 7
 8/// <summary>
 9/// Configures the system clock.
 10/// </summary>
 11[ManifestFeatureCategory("Infrastructure")]
 12[ShellFeature(
 13    "SystemClock",
 14    DisplayName = "System Clock",
 15    Description = "Provides the default system clock service")]
 16public class SystemClockFeature : IShellFeature
 17{
 18    public void ConfigureServices(IServiceCollection services)
 19    {
 020        services.AddSingleton<ISystemClock, SystemClock>();
 021    }
 22}