< 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>
 410215    public WorkflowDefinitionModel() { }
 16
 17    /// <summary>
 18    /// Represents a serializable workflow definition.
 19    /// </summary>
 1020    public WorkflowDefinitionModel(string id,
 1021        string definitionId,
 1022        string? tenantId,
 1023        string? name,
 1024        string? description,
 1025        DateTimeOffset createdAt,
 1026        int version,
 1027        Version? toolVersion,
 1028        ICollection<VariableDefinition>? variables,
 1029        ICollection<InputDefinition>? inputs,
 1030        ICollection<OutputDefinition>? outputs,
 1031        ICollection<string>? outcomes,
 1032        IDictionary<string, object>? customProperties,
 1033        bool isReadonly,
 1034        bool isSystem,
 1035        bool isLatest,
 1036        bool isPublished,
 1037        WorkflowOptions? options,
 1038        bool? usableAsActivity,
 1039        IActivity? root)
 40    {
 1041        Id = id;
 1042        DefinitionId = definitionId;
 1043        TenantId = tenantId;
 1044        Name = name;
 1045        Description = description;
 1046        CreatedAt = createdAt;
 1047        Version = version;
 1048        ToolVersion = toolVersion;
 1049        Variables = variables;
 1050        Inputs = inputs;
 1051        Outputs = outputs;
 1052        Outcomes = outcomes;
 1053        CustomProperties = customProperties;
 1054        IsReadonly = isReadonly;
 1055        IsSystem = isSystem;
 1056        IsLatest = isLatest;
 1057        IsPublished = isPublished;
 1058        Options = options;
 1059        UsableAsActivity = usableAsActivity;
 1060        Root = root;
 1061    }
 62
 293663    public string Id { get; set; } = null!;
 294964    public string DefinitionId { get; set; } = null!;
 88465    public string? TenantId { get; set; }
 414066    public string? Name { get; set; }
 207267    public string? Description { get; set; }
 396768    public DateTimeOffset CreatedAt { get; set; }
 278569    public int Version { get; set; }
 373070    public Version? ToolVersion { get; set; }
 397171    public ICollection<VariableDefinition>? Variables { get; set; }
 397172    public ICollection<InputDefinition>? Inputs { get; set; }
 397173    public ICollection<OutputDefinition>? Outputs { get; set; }
 397174    public ICollection<string>? Outcomes { get; set; }
 397175    public IDictionary<string, object>? CustomProperties { get; set; }
 278976    public bool IsReadonly { get; set; }
 278577    public bool IsSystem { get; set; }
 293278    public bool IsLatest { get; set; }
 293279    public bool IsPublished { get; set; }
 397580    public WorkflowOptions? Options { get; set; }
 81
 82    [Obsolete("Use Options.UsableAsActivity instead")]
 52683    public bool? UsableAsActivity { get; set; }
 84
 411885    public IActivity? Root { get; set; }
 86}