< Summary

Information
Class: Elsa.Workflows.CommitStates.ObjectRegistrationFactory
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/CommitStates/Helpers/ObjectRegistrationFactory.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 16
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
Describe(...)100%11100%
Describe(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/CommitStates/Helpers/ObjectRegistrationFactory.cs

#LineLine coverage
 1namespace Elsa.Workflows.CommitStates;
 2
 3public static class ObjectRegistrationFactory
 4{
 5    public static WorkflowCommitStrategyRegistration Describe(IWorkflowCommitStrategy strategy)
 6    {
 57        var metadata = ObjectMetadataDescriber.Describe(strategy.GetType());
 58        return new(strategy, metadata);
 9    }
 10
 11    public static ActivityCommitStrategyRegistration Describe(IActivityCommitStrategy strategy)
 12    {
 413        var metadata = ObjectMetadataDescriber.Describe(strategy.GetType());
 414        return new(strategy, metadata);
 15    }
 16}