< Summary

Information
Class: Elsa.Workflows.CommitStates.ActivityCommitStrategyRegistration
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/CommitStates/Models/ActivityCommitStrategyRegistration.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/ActivityCommitStrategyRegistration.cs

#LineLine coverage
 1namespace Elsa.Workflows.CommitStates;
 2
 3public class ActivityCommitStrategyRegistration : ObjectRegistration<IActivityCommitStrategy, CommitStrategyMetadata>
 4{
 05    public ActivityCommitStrategyRegistration()
 6    {
 07    }
 8
 49    public ActivityCommitStrategyRegistration(IActivityCommitStrategy strategy, CommitStrategyMetadata metadata)
 10    {
 411        Strategy = strategy;
 412        Metadata = metadata;
 413    }
 14}