< Summary

Information
Class: Elsa.Common.Features.SystemClockFeature
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Features/SystemClockFeature.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 23
Line coverage: 100%
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
.ctor(...)100%11100%
Apply()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Common.Services;
 2using Elsa.Features.Abstractions;
 3using Elsa.Features.Services;
 4using Microsoft.Extensions.DependencyInjection;
 5
 6namespace Elsa.Common.Features;
 7
 8/// <summary>
 9/// Configures the system clock.
 10/// </summary>
 11public class SystemClockFeature : FeatureBase
 12{
 13    /// <inheritdoc />
 114    public SystemClockFeature(IModule module) : base(module)
 15    {
 116    }
 17
 18    /// <inheritdoc />
 19    public override void Apply()
 20    {
 121        Services.AddSingleton<ISystemClock, SystemClock>();
 122    }
 23}