< 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>
 369415    public WorkflowDefinitionModel() { }
 16
 17    /// <summary>
 18    /// Represents a serializable workflow definition.
 19    /// </summary>
 1220    public WorkflowDefinitionModel(string id,
 1221        string definitionId,
 1222        string? tenantId,
 1223        string? name,
 1224        string? description,
 1225        DateTimeOffset createdAt,
 1226        int version,
 1227        Version? toolVersion,
 1228        ICollection<VariableDefinition>? variables,
 1229        ICollection<InputDefinition>? inputs,
 1230        ICollection<OutputDefinition>? outputs,
 1231        ICollection<string>? outcomes,
 1232        IDictionary<string, object>? customProperties,
 1233        bool isReadonly,
 1234        bool isSystem,
 1235        bool isLatest,
 1236        bool isPublished,
 1237        WorkflowOptions? options,
 1238        bool? usableAsActivity,
 1239        IActivity? root)
 40    {
 1241        Id = id;
 1242        DefinitionId = definitionId;
 1243        TenantId = tenantId;
 1244        Name = name;
 1245        Description = description;
 1246        CreatedAt = createdAt;
 1247        Version = version;
 1248        ToolVersion = toolVersion;
 1249        Variables = variables;
 1250        Inputs = inputs;
 1251        Outputs = outputs;
 1252        Outcomes = outcomes;
 1253        CustomProperties = customProperties;
 1254        IsReadonly = isReadonly;
 1255        IsSystem = isSystem;
 1256        IsLatest = isLatest;
 1257        IsPublished = isPublished;
 1258        Options = options;
 1259        UsableAsActivity = usableAsActivity;
 1260        Root = root;
 1261    }
 62
 274663    public string Id { get; set; } = null!;
 276264    public string DefinitionId { get; set; } = null!;
 88865    public string? TenantId { get; set; }
 373066    public string? Name { get; set; }
 187267    public string? Description { get; set; }
 355568    public DateTimeOffset CreatedAt { get; set; }
 258669    public int Version { get; set; }
 332070    public Version? ToolVersion { get; set; }
 356171    public ICollection<VariableDefinition>? Variables { get; set; }
 356172    public ICollection<InputDefinition>? Inputs { get; set; }
 356173    public ICollection<OutputDefinition>? Outputs { get; set; }
 356174    public ICollection<string>? Outcomes { get; set; }
 356175    public IDictionary<string, object>? CustomProperties { get; set; }
 259276    public bool IsReadonly { get; set; }
 258177    public bool IsSystem { get; set; }
 273078    public bool IsLatest { get; set; }
 273079    public bool IsPublished { get; set; }
 356580    public WorkflowOptions? Options { get; set; }
 81
 82    [Obsolete("Use Options.UsableAsActivity instead")]
 53283    public bool? UsableAsActivity { get; set; }
 84
 371085    public IActivity? Root { get; set; }
 86}