< 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>
 296815    public WorkflowDefinitionModel() { }
 16
 17    /// <summary>
 18    /// Represents a serializable workflow definition.
 19    /// </summary>
 1120    public WorkflowDefinitionModel(string id,
 1121        string definitionId,
 1122        string? tenantId,
 1123        string? name,
 1124        string? description,
 1125        DateTimeOffset createdAt,
 1126        int version,
 1127        Version? toolVersion,
 1128        ICollection<VariableDefinition>? variables,
 1129        ICollection<InputDefinition>? inputs,
 1130        ICollection<OutputDefinition>? outputs,
 1131        ICollection<string>? outcomes,
 1132        IDictionary<string, object>? customProperties,
 1133        bool isReadonly,
 1134        bool isSystem,
 1135        bool isLatest,
 1136        bool isPublished,
 1137        WorkflowOptions? options,
 1138        bool? usableAsActivity,
 1139        IActivity? root)
 40    {
 1141        Id = id;
 1142        DefinitionId = definitionId;
 1143        TenantId = tenantId;
 1144        Name = name;
 1145        Description = description;
 1146        CreatedAt = createdAt;
 1147        Version = version;
 1148        ToolVersion = toolVersion;
 1149        Variables = variables;
 1150        Inputs = inputs;
 1151        Outputs = outputs;
 1152        Outcomes = outcomes;
 1153        CustomProperties = customProperties;
 1154        IsReadonly = isReadonly;
 1155        IsSystem = isSystem;
 1156        IsLatest = isLatest;
 1157        IsPublished = isPublished;
 1158        Options = options;
 1159        UsableAsActivity = usableAsActivity;
 1160        Root = root;
 1161    }
 62
 238163    public string Id { get; set; } = null!;
 238564    public string DefinitionId { get; set; } = null!;
 88665    public string? TenantId { get; set; }
 301066    public string? Name { get; set; }
 150767    public string? Description { get; set; }
 283868    public DateTimeOffset CreatedAt { get; set; }
 222369    public int Version { get; set; }
 260170    public Version? ToolVersion { get; set; }
 284271    public ICollection<VariableDefinition>? Variables { get; set; }
 284272    public ICollection<InputDefinition>? Inputs { get; set; }
 284273    public ICollection<OutputDefinition>? Outputs { get; set; }
 284274    public ICollection<string>? Outcomes { get; set; }
 284275    public IDictionary<string, object>? CustomProperties { get; set; }
 222776    public bool IsReadonly { get; set; }
 222377    public bool IsSystem { get; set; }
 236778    public bool IsLatest { get; set; }
 236779    public bool IsPublished { get; set; }
 284680    public WorkflowOptions? Options { get; set; }
 81
 82    [Obsolete("Use Options.UsableAsActivity instead")]
 52883    public bool? UsableAsActivity { get; set; }
 84
 298685    public IActivity? Root { get; set; }
 86}