< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Commands/DispatchResumeWorkflowsCommand.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>
 9/// <param name="activityTypeName">The name of the activity type to dispatch.</param>
 10/// <param name="stimulus">The payload to match the bookmark.</param>
 111public class DispatchResumeWorkflowsCommand(string activityTypeName, object stimulus) : ICommand<Unit>
 12{
 13    /// <summary>The name of the activity type to dispatch.</summary>
 114    public string ActivityTypeName { get; init; } = activityTypeName;
 15
 16    /// <summary>The payload to match the bookmark.</summary>
 117    public object Stimulus { get; init; } = stimulus;
 18
 19    /// <summary>The correlation ID of the workflow instance to dispatch.</summary>
 120    public string? CorrelationId { get; set; }
 21
 22    /// <summary>The ID of the workflow instance to dispatch.</summary>
 123    public string? WorkflowInstanceId { get; set; }
 24
 25    /// <summary>The ID of the activity instance to dispatch.</summary>
 126    public string? ActivityInstanceId { get; set; }
 27
 28    /// <summary>The input to pass to the activity.</summary>
 129    public IDictionary<string, object>? Input { get; set; }
 30
 31    /// <summary>
 32    /// Any properties to attach to the workflow instance.
 33    /// </summary>
 034    public IDictionary<string, object>? Properties { get; set; }
 35}