< Summary

Information
Class: Elsa.Workflows.Models.Bookmark
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/Bookmark.cs
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
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
.ctor(...)100%11100%
get_Id()100%11100%
get_Name()100%11100%
get_Hash()100%11100%
get_Payload()100%11100%
get_ActivityId()100%11100%
get_ActivityNodeId()100%11100%
get_ActivityInstanceId()100%11100%
get_CreatedAt()100%11100%
get_AutoBurn()100%11100%
get_CallbackMethodName()100%11100%
get_AutoComplete()100%11100%
get_Metadata()100%11100%
.ctor()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/Bookmark.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Workflows.Models;
 4
 5/// <summary>
 6/// A bookmark represents a location in a workflow where the workflow can be resumed at a later time.
 7/// </summary>
 8/// <param name="Id">The ID of the bookmark.</param>
 9/// <param name="Name">The name of the bookmark.</param>
 10/// <param name="Hash">The hash of the bookmark.</param>
 11/// <param name="Payload">The data associated with the bookmark.</param>
 12/// <param name="ActivityId">The ID of the activity associated with the bookmark.</param>
 13/// <param name="ActivityNodeId">The ID of the activity node associated with the bookmark.</param>
 14/// <param name="ActivityInstanceId">The ID of the activity instance associated with the bookmark.</param>
 15/// <param name="CreatedAt">The date and time the bookmark was created.</param>
 16/// <param name="AutoBurn">Whether or not the bookmark should be automatically burned.</param>
 17/// <param name="CallbackMethodName">The name of the method on the activity class to invoke when the bookmark is resumed
 18/// <param name="AutoComplete">Whether or not the activity should be automatically completed when the bookmark is resume
 19/// <param name="Metadata">Custom properties associated with the bookmark.</param>
 11420public record Bookmark(
 32221    string Id,
 49122    string Name,
 12623    string Hash,
 16724    object? Payload,
 9025    string ActivityId,
 18026    string ActivityNodeId,
 41427    string? ActivityInstanceId,
 12628    DateTimeOffset CreatedAt,
 16429    bool AutoBurn = true,
 12030    string? CallbackMethodName = null,
 10631    bool AutoComplete = true,
 19432    IDictionary<string, string>? Metadata = null)
 33{
 34    /// <inheritdoc />
 35    [JsonConstructor]
 4636    public Bookmark() : this("", "", "",  null, "", "", "", default, false)
 37    {
 4638    }
 39}