< 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
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 35
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/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>
 011public class DispatchResumeWorkflowsCommand(string activityTypeName, object stimulus) : ICommand<Unit>
 12{
 13    /// <summary>The name of the activity type to dispatch.</summary>
 014    public string ActivityTypeName { get; init; } = activityTypeName;
 15
 16    /// <summary>The payload to match the bookmark.</summary>
 017    public object Stimulus { get; init; } = stimulus;
 18
 19    /// <summary>The correlation ID of the workflow instance to dispatch.</summary>
 020    public string? CorrelationId { get; set; }
 21
 22    /// <summary>The ID of the workflow instance to dispatch.</summary>
 023    public string? WorkflowInstanceId { get; set; }
 24
 25    /// <summary>The ID of the activity instance to dispatch.</summary>
 026    public string? ActivityInstanceId { get; set; }
 27
 28    /// <summary>The input to pass to the activity.</summary>
 029    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}