< 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: 17
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 Microsoft.Extensions.DependencyInjection;
 4
 5namespace Elsa.Common.ShellFeatures;
 6
 7/// <summary>
 8/// Configures the system clock.
 9/// </summary>
 10[ShellFeature("SystemClock")]
 11public class SystemClockFeature : IShellFeature
 12{
 13    public void ConfigureServices(IServiceCollection services)
 14    {
 015        services.AddSingleton<ISystemClock, SystemClock>();
 016    }
 17}