< 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
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 20
Line coverage: 0%
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%
get_InstanceId()100%210%
get_BookmarkId()100%210%
get_ActivityHandle()100%210%
get_Input()100%210%
get_Properties()100%210%
get_CorrelationId()100%210%

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]
 012public class DispatchWorkflowInstanceCommand(string instanceId) : ICommand<Unit>
 13{
 014    public string InstanceId { get; init; } = instanceId;
 015    public string? BookmarkId { get; set; }
 016    public ActivityHandle? ActivityHandle { get; set; }
 017    public IDictionary<string, object>? Input { get; set; }
 018    public IDictionary<string, object>? Properties { get; set; }
 019    public string? CorrelationId { get; set; }
 20}