< Summary

Information
Class: Elsa.Workflows.CommitStates.WorkflowCommitStrategyRegistration
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/CommitStates/Models/WorkflowCommitStrategyRegistration.cs
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 14
Line coverage: 66.6%
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%210%
.ctor(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/CommitStates/Models/WorkflowCommitStrategyRegistration.cs

#LineLine coverage
 1namespace Elsa.Workflows.CommitStates;
 2
 3public class WorkflowCommitStrategyRegistration : ObjectRegistration<IWorkflowCommitStrategy, CommitStrategyMetadata>
 4{
 05    public WorkflowCommitStrategyRegistration()
 6    {
 07    }
 8
 59    public WorkflowCommitStrategyRegistration(IWorkflowCommitStrategy strategy, CommitStrategyMetadata metadata)
 10    {
 511        Strategy = strategy;
 512        Metadata = metadata;
 513    }
 14}