< Summary

Information
Class: Elsa.Workflows.Runtime.Commands.DispatchTriggerWorkflowsCommand
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Commands/DispatchTriggerWorkflowsCommand.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 18
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_ActivityTypeName()100%210%
get_Stimulus()100%210%
get_CorrelationId()100%210%
get_WorkflowInstanceId()100%210%
get_ActivityInstanceId()100%210%
get_Input()100%210%
get_Properties()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2using Elsa.Mediator.Models;
 3
 4namespace Elsa.Workflows.Runtime.Commands;
 5
 6/// <summary>
 7/// Represents a command that dispatches a workflow instance.
 8/// </summary>
 09public class DispatchTriggerWorkflowsCommand(string activityTypeName, object stimulus) : ICommand<Unit>
 10{
 011    public string ActivityTypeName { get; init; } = activityTypeName;
 012    public object Stimulus { get; init; } = stimulus;
 013    public string? CorrelationId { get; set; }
 014    public string? WorkflowInstanceId { get; set; }
 015    public string? ActivityInstanceId { get; set; }
 016    public IDictionary<string, object>? Input { get; set; }
 017    public IDictionary<string, object>? Properties { get; set; }
 18}