< Summary

Information
Class: Elsa.Workflows.Runtime.Commands.DispatchWorkflowInstanceCommand
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Commands/DispatchWorkflowInstanceCommand.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 20
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%
get_InstanceId()100%11100%
get_BookmarkId()100%11100%
get_ActivityHandle()100%11100%
get_Input()100%11100%
get_Properties()100%11100%
get_CorrelationId()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Commands/DispatchWorkflowInstanceCommand.cs

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2using Elsa.Mediator.Models;
 3using Elsa.Workflows.Models;
 4using JetBrains.Annotations;
 5
 6namespace Elsa.Workflows.Runtime.Commands;
 7
 8/// <summary>
 9/// A command to dispatch a workflow instance.
 10/// </summary>
 11[PublicAPI]
 112public class DispatchWorkflowInstanceCommand(string instanceId) : ICommand<Unit>
 13{
 114    public string InstanceId { get; init; } = instanceId;
 115    public string? BookmarkId { get; set; }
 116    public ActivityHandle? ActivityHandle { get; set; }
 117    public IDictionary<string, object>? Input { get; set; }
 118    public IDictionary<string, object>? Properties { get; set; }
 119    public string? CorrelationId { get; set; }
 20}