< Summary

Information
Class: Elsa.Workflows.Runtime.ResumeBookmarkResult
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Models/ResumeBookmarkResult.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 21
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
get_Matched()100%210%
NotFound()100%210%
Found(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Models/ResumeBookmarkResult.cs

#LineLine coverage
 1using Elsa.Workflows.Runtime.Messages;
 2
 3namespace Elsa.Workflows.Runtime;
 4
 5/// <summary>
 6/// Represents the result of resuming a bookmark.
 7/// </summary>
 8/// <param name="Matched">Whether the bookmark was matched.</param>
 9/// <param name="Response">The response from running the workflow instance. This is only set if the bookmark was matched
 010public record ResumeBookmarkResult(bool Matched, RunWorkflowInstanceResponse? Response = null)
 11{
 12    /// <summary>
 13    /// Represents the result of resuming a bookmark when the bookmark was not found.
 14    /// </summary>
 015    public static ResumeBookmarkResult NotFound() => new(false);
 16
 17    /// <summary>
 18    /// Represents the result of resuming a bookmark when the bookmark was not found.
 19    /// </summary>
 020    public static ResumeBookmarkResult Found(RunWorkflowInstanceResponse response) => new(true, response);
 21}