< Summary

Information
Class: Elsa.Workflows.Runtime.Entities.StoredTrigger
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/StoredTrigger.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 39
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
get_WorkflowDefinitionId()100%11100%
get_WorkflowDefinitionVersionId()100%11100%
get_Name()100%11100%
get_ActivityId()100%11100%
get_Hash()100%11100%
get_Payload()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/StoredTrigger.cs

#LineLine coverage
 1using Elsa.Common.Entities;
 2
 3namespace Elsa.Workflows.Runtime.Entities;
 4
 5/// <summary>
 6/// Represents a trigger associated with a workflow definition.
 7/// </summary>
 8public class StoredTrigger : Entity
 9{
 10    /// <summary>
 11    /// The ID of the workflow definition.
 12    /// </summary>
 80513    public string WorkflowDefinitionId { get; set; } = null!;
 14
 15    /// <summary>
 16    /// The version ID of the workflow definition.
 17    /// </summary>
 99918    public string WorkflowDefinitionVersionId { get; set; } = null!;
 19
 20    /// <summary>
 21    /// The name of the trigger, if any. Typically assigned a stimulus name.
 22    /// </summary>
 93323    public string? Name { get; set; }
 24
 25    /// <summary>
 26    /// The ID of the activity associated with the trigger.
 27    /// </summary>
 100128    public string ActivityId { get; set; } = null!;
 29
 30    /// <summary>
 31    /// The hash of the trigger.
 32    /// </summary>
 78933    public string? Hash { get; set; }
 34
 35    /// <summary>
 36    /// The payload of the trigger.
 37    /// </summary>
 127338    public object? Payload { get; set; }
 39}