< Summary

Information
Class: Elsa.Workflows.Management.Services.ActivityRegistryPopulator
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Services/ActivityRegistryPopulator.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 13
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%
PopulateRegistryAsync()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Services/ActivityRegistryPopulator.cs

#LineLine coverage
 1namespace Elsa.Workflows.Management.Services;
 2
 3/// <summary>
 4/// Populates the <see cref="IActivityRegistry"/> with descriptors provided by <see cref="IActivityProvider"/>s.
 5/// </summary>
 26public class ActivityRegistryPopulator(IEnumerable<IActivityProvider> providers, IActivityRegistry registry) : IActivity
 7{
 8    /// <inheritdoc />
 9    public async Task PopulateRegistryAsync(CancellationToken cancellationToken)
 10    {
 211        await registry.RefreshDescriptorsAsync(providers, cancellationToken);
 212    }
 13}