< Summary

Information
Class: Elsa.Labels.Endpoints.Labels.Get.LabelMapper
Assembly: Elsa.Labels
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Endpoints/Labels/Get/Mappers.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 15
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
FromEntity(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Endpoints/Labels/Get/Mappers.cs

#LineLine coverage
 1using Elsa.Labels.Entities;
 2using FastEndpoints;
 3
 4namespace Elsa.Labels.Endpoints.Labels.Get;
 5
 6internal class LabelMapper : Mapper<Request, Response, Label>
 7{
 08    public override Response FromEntity(Label e) => new()
 09    {
 010        Id = e.Id,
 011        Color = e.Color,
 012        Description = e.Description,
 013        NormalizedName = e.NormalizedName
 014    };
 15}