< Summary

Information
Class: Elsa.Bpmn.Interchange.Endpoints.Bpmn.BpmnImportIssueModel
Assembly: Elsa.Bpmn.Interchange
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn.Interchange/Endpoints/Bpmn/BpmnImportIssueModel.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 30
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_Severity()100%11100%
get_Message()100%11100%
get_ElementId()100%11100%
get_ProcessId()100%11100%
From(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn.Interchange/Endpoints/Bpmn/BpmnImportIssueModel.cs

#LineLine coverage
 1using Bpmn.Interchange;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Bpmn.Interchange.Endpoints.Bpmn;
 5
 6/// <summary>One element-scoped finding from a BPMN read, as reported over the API.</summary>
 7[PublicAPI]
 8public sealed class BpmnImportIssueModel
 9{
 10    /// <summary>How much of the element's authored meaning survived the read: <c>Info</c>, <c>Degraded</c> or <c>Droppe
 2711    public string Severity { get; init; } = string.Empty;
 12
 13    /// <summary>A sentence naming the element, what the document said, and what the reader did about it.</summary>
 2714    public string Message { get; init; } = string.Empty;
 15
 16    /// <summary>The BPMN id the finding is about, when it is about one element.</summary>
 1817    public string? ElementId { get; init; }
 18
 19    /// <summary>The process the finding occurred in, when it is scoped to one.</summary>
 1820    public string? ProcessId { get; init; }
 21
 22    /// <summary>Maps a library finding onto the API model.</summary>
 923    public static BpmnImportIssueModel From(BpmnImportIssue issue) => new()
 924    {
 925        Severity = issue.Severity.ToString(),
 926        Message = issue.Message,
 927        ElementId = issue.ElementId,
 928        ProcessId = issue.ProcessId
 929    };
 30}