< Summary - MechanicsSoftware — Coverage Report

Information
Class: MechanicsSoftware.Application.UseCases.Services.ServiceResponse
Assembly: MechanicsSoftware.Application
File(s): /home/runner/work/mechanics-software/mechanics-software/src/MechanicsSoftware.Application/UseCases/Services/ServiceResponse.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 15
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%
From(...)100%11100%

File(s)

/home/runner/work/mechanics-software/mechanics-software/src/MechanicsSoftware.Application/UseCases/Services/ServiceResponse.cs

#LineLine coverage
 1using MechanicsSoftware.Domain.Entities;
 2
 3namespace MechanicsSoftware.Application.UseCases.Services;
 4
 145public sealed record ServiceResponse(
 146    Guid Id,
 147    string Name,
 148    string? Description,
 149    int BasePriceInCents,
 1410    string BasePriceFormatted,
 1411    int EstimatedMinutes)
 12{
 13    public static ServiceResponse From(Service s) =>
 1414        new(s.Id, s.Name, s.Description, s.BasePrice.Cents, s.BasePrice.ToFormatted(), s.EstimatedMinutes);
 15}