< Summary

Information
Class: Elsa.Workflows.WorkflowExecutionState
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/WorkflowExecutionState.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 17
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%
Dispose()100%11100%

File(s)

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

#LineLine coverage
 1namespace Elsa.Workflows;
 2
 3internal class WorkflowExecutionState : IDisposable
 4{
 5    private readonly ActivityExecutionContext _activityExecutionContext;
 6
 30197    public WorkflowExecutionState(ActivityExecutionContext activityExecutionContext)
 8    {
 30199        _activityExecutionContext = activityExecutionContext;
 301910        _activityExecutionContext.IsExecuting = activityExecutionContext.WorkflowExecutionContext.IsExecuting = true;
 301911    }
 12
 13    public void Dispose()
 14    {
 301915        _activityExecutionContext.IsExecuting = _activityExecutionContext.WorkflowExecutionContext.IsExecuting = false;
 301916    }
 17}