< Summary

Information
Class: Elsa.Testing.Shared.Services.WorkflowEvents
Assembly: Elsa.Testing.Shared.Component
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Testing.Shared.Component/Services/WorkflowEvents.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 15
Line coverage: 100%
Branch coverage
80%
Covered branches: 8
Total branches: 10
Branch coverage: 80%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
OnWorkflowFinished(...)50%22100%
OnWorkflowInstanceSaved(...)100%22100%
OnWorkflowStateCommitted(...)100%22100%
OnActivityExecuted(...)50%22100%
OnActivityExecutedLogUpdated(...)100%22100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Testing.Shared.Component/Services/WorkflowEvents.cs

#LineLine coverage
 1namespace Elsa.Testing.Shared.Services;
 2
 3public class WorkflowEvents
 4{
 5    public event EventHandler<WorkflowFinishedEventArgs>? WorkflowFinished;
 6    public event EventHandler<WorkflowInstanceSavedEventArgs>? WorkflowInstanceSaved;
 7    public event EventHandler<WorkflowStateCommittedEventArgs>? WorkflowStateCommitted;
 8    public event EventHandler<ActivityExecutedEventArgs>? ActivityExecuted;
 9    public event EventHandler<ActivityExecutedLogUpdatedEventArgs>? ActivityExecutedLogUpdated;
 27910    public void OnWorkflowFinished(WorkflowFinishedEventArgs args) => WorkflowFinished?.Invoke(this, args);
 34911    public void OnWorkflowInstanceSaved(WorkflowInstanceSavedEventArgs args) => WorkflowInstanceSaved?.Invoke(this, args
 32312    public void OnWorkflowStateCommitted(WorkflowStateCommittedEventArgs args) => WorkflowStateCommitted?.Invoke(this, a
 239213    public void OnActivityExecuted(ActivityExecutedEventArgs args) => ActivityExecuted?.Invoke(this, args);
 32314    public void OnActivityExecutedLogUpdated(ActivityExecutedLogUpdatedEventArgs args) => ActivityExecutedLogUpdated?.In
 15}