< Summary

Information
Class: Elsa.Workflows.Runtime.Entities.StoredBookmark
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/StoredBookmark.cs
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 58
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_ActivityTypeName()100%11100%
set_ActivityTypeName(...)100%11100%
get_Name()100%11100%
get_Hash()100%11100%
get_WorkflowInstanceId()100%11100%
get_ActivityInstanceId()100%11100%
get_CorrelationId()100%11100%
get_Payload()100%11100%
get_Metadata()100%11100%
get_CreatedAt()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Common.Entities;
 2
 3namespace Elsa.Workflows.Runtime.Entities;
 4
 5/// <summary>
 6/// Represents a bookmark that has been stored in the database.
 7/// </summary>
 8public class StoredBookmark : Entity
 9{
 10    /// <summary>
 11    /// The name of the activity type associated with the bookmark.
 12    /// </summary>
 13    [Obsolete("Use Name instead.")] public string ActivityTypeName
 14    {
 62415        get => Name!;
 9316        set => Name = value;
 17    }
 18
 19    /// <summary>
 20    /// The name of the bookmark, if any. Typically assigned a stimulus name.
 21    /// </summary>
 96222    public string? Name { get; set; }
 23
 24    /// <summary>
 25    /// The hash of the bookmark.
 26    /// </summary>
 5727    public string Hash { get; set; } = null!;
 28
 29    /// <summary>
 30    /// The ID of the workflow instance associated with the bookmark.
 31    /// </summary>
 15832    public string WorkflowInstanceId { get; set; } = null!;
 33
 34    /// <summary>
 35    /// The ID of the activity instance associated with the bookmark.
 36    /// </summary>
 6137    public string? ActivityInstanceId { get; set; }
 38
 39    /// <summary>
 40    /// The correlation ID of the workflow instance associated with the bookmark.
 41    /// </summary>
 5742    public string? CorrelationId { get; set; }
 43
 44    /// <summary>
 45    /// The data associated with the bookmark.
 46    /// </summary>
 21847    public object? Payload { get; set; }
 48
 49    /// <summary>
 50    /// Custom properties associated with the bookmark.
 51    /// </summary>
 18652    public IDictionary<string, string>? Metadata { get; set; }
 53
 54    /// <summary>
 55    /// The date and time the bookmark was created.
 56    /// </summary>
 5757    public DateTimeOffset CreatedAt { get; set; }
 58}