< Summary

Information
Class: Elsa.Workflows.Management.Models.WorkflowDefinitionModel
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Models/WorkflowDefinitionModel.cs
Line coverage
100%
Covered lines: 62
Uncovered lines: 0
Coverable lines: 62
Total lines: 86
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%
.ctor(...)100%11100%
get_Id()100%11100%
get_DefinitionId()100%11100%
get_TenantId()100%11100%
get_Name()100%11100%
get_Description()100%11100%
get_CreatedAt()100%11100%
get_Version()100%11100%
get_ToolVersion()100%11100%
get_Variables()100%11100%
get_Inputs()100%11100%
get_Outputs()100%11100%
get_Outcomes()100%11100%
get_CustomProperties()100%11100%
get_IsReadonly()100%11100%
get_IsSystem()100%11100%
get_IsLatest()100%11100%
get_IsPublished()100%11100%
get_Options()100%11100%
get_UsableAsActivity()100%11100%
get_Root()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Models/WorkflowDefinitionModel.cs

#LineLine coverage
 1using Elsa.Workflows.Models;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Workflows.Management.Models;
 5
 6/// <summary>
 7/// Represents a serializable workflow definition.
 8/// </summary>
 9[PublicAPI]
 10public class WorkflowDefinitionModel
 11{
 12    /// <summary>
 13    /// Represents a serializable workflow definition.
 14    /// </summary>
 213215    public WorkflowDefinitionModel() { }
 16
 17    /// <summary>
 18    /// Represents a serializable workflow definition.
 19    /// </summary>
 120    public WorkflowDefinitionModel(string id,
 121        string definitionId,
 122        string? tenantId,
 123        string? name,
 124        string? description,
 125        DateTimeOffset createdAt,
 126        int version,
 127        Version? toolVersion,
 128        ICollection<VariableDefinition>? variables,
 129        ICollection<InputDefinition>? inputs,
 130        ICollection<OutputDefinition>? outputs,
 131        ICollection<string>? outcomes,
 132        IDictionary<string, object>? customProperties,
 133        bool isReadonly,
 134        bool isSystem,
 135        bool isLatest,
 136        bool isPublished,
 137        WorkflowOptions? options,
 138        bool? usableAsActivity,
 139        IActivity? root)
 40    {
 141        Id = id;
 142        DefinitionId = definitionId;
 143        TenantId = tenantId;
 144        Name = name;
 145        Description = description;
 146        CreatedAt = createdAt;
 147        Version = version;
 148        ToolVersion = toolVersion;
 149        Variables = variables;
 150        Inputs = inputs;
 151        Outputs = outputs;
 152        Outcomes = outcomes;
 153        CustomProperties = customProperties;
 154        IsReadonly = isReadonly;
 155        IsSystem = isSystem;
 156        IsLatest = isLatest;
 157        IsPublished = isPublished;
 158        Options = options;
 159        UsableAsActivity = usableAsActivity;
 160        Root = root;
 161    }
 62
 123763    public string Id { get; set; } = null!;
 124164    public string DefinitionId { get; set; } = null!;
 17065    public string? TenantId { get; set; }
 213466    public string? Name { get; set; }
 106967    public string? Description { get; set; }
 207268    public DateTimeOffset CreatedAt { get; set; }
 117969    public int Version { get; set; }
 207670    public Version? ToolVersion { get; set; }
 207671    public ICollection<VariableDefinition>? Variables { get; set; }
 207672    public ICollection<InputDefinition>? Inputs { get; set; }
 207673    public ICollection<OutputDefinition>? Outputs { get; set; }
 207674    public ICollection<string>? Outcomes { get; set; }
 207675    public IDictionary<string, object>? CustomProperties { get; set; }
 118376    public bool IsReadonly { get; set; }
 117977    public bool IsSystem { get; set; }
 123378    public bool IsLatest { get; set; }
 123379    public bool IsPublished { get; set; }
 208080    public WorkflowOptions? Options { get; set; }
 81
 82    [Obsolete("Use Options.UsableAsActivity instead")]
 11683    public bool? UsableAsActivity { get; set; }
 84
 213085    public IActivity? Root { get; set; }
 86}