< Summary

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

File(s)

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

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2using Elsa.Mediator.Models;
 3
 4namespace Elsa.Workflows.Runtime.Commands;
 5
 6/// <summary>
 7/// Dispatches a workflow definition.
 8/// </summary>
 239public class DispatchWorkflowDefinitionCommand(string definitionVersionId) : ICommand<Unit>
 10{
 4611    public string DefinitionVersionId { get; init; } = definitionVersionId;
 4612    public string? ParentWorkflowInstanceId { get; init; }
 4613    public IDictionary<string, object>? Input { get; set; }
 4614    public IDictionary<string, object>? Properties { get; set; }
 4615    public string? CorrelationId { get; set; }
 4616    public string? InstanceId { get; set; }
 4617    public string? TriggerActivityId { get; set; }
 18}