< Summary

Information
Class: Elsa.Extensions.ModuleExtensions
Assembly: Elsa.Scheduling
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Scheduling/Extensions/ModuleExtensions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
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
UseScheduling(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Scheduling/Extensions/ModuleExtensions.cs

#LineLine coverage
 1using Elsa.Features.Services;
 2using Elsa.Scheduling.Features;
 3
 4// ReSharper disable once CheckNamespace
 5namespace Elsa.Extensions;
 6
 7/// <summary>
 8/// Provides extension methods for <see cref="IModule"/> instances.
 9/// </summary>
 10public static class ModuleExtensions
 11{
 12    /// <summary>
 13    /// Enables the scheduling feature.
 14    /// </summary>
 15    /// <param name="module">The module.</param>
 16    /// <param name="configure">A delegate to configure the feature.</param>
 17    /// <returns>The module.</returns>
 18    public static IModule UseScheduling(this IModule module, Action<SchedulingFeature>? configure = null )
 19    {
 16720        module.Configure(configure);
 16721        return module;
 22    }
 23}