< Summary

Information
Class: Elsa.Labels.Entities.Label
Assembly: Elsa.Labels
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Entities/Label.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 25
Line coverage: 0%
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_Name()100%210%
set_Name(...)100%210%
get_NormalizedName()100%210%
get_Description()100%210%
get_Color()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Entities/Label.cs

#LineLine coverage
 1using Elsa.Common.Entities;
 2
 3namespace Elsa.Labels.Entities;
 4
 5/// <summary>
 6/// Represents an individual label.
 7/// </summary>
 8public class Label : Entity
 9{
 10    private string _name = default!;
 11
 12    public string Name
 13    {
 014        get => _name;
 15        set
 16        {
 017            _name = value;
 018            NormalizedName = value.ToLowerInvariant();
 019        }
 20    }
 21
 022    public string NormalizedName { get; set; } = default!;
 023    public string? Description { get; set; }
 024    public string? Color { get; set; }
 25}