< Summary - Syki

Information
Class: Syki.Back.Features.Campi.GetCampi.GetCampiOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Campi/GetCampi/GetCampiOut.cs
Tag: 56_26538939494
Line coverage
6%
Covered lines: 2
Uncovered lines: 28
Coverable lines: 30
Total lines: 74
Line coverage: 6.6%
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_Total()100%11100%
get_Items()100%11100%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Campi/GetCampi/GetCampiOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Campi.GetCampi;
 2
 3public class GetCampiOut : IApiDto<GetCampiOut>
 4{
 85    public int Total { get; set; }
 146    public List<GetCampiItemOut> Items { get; set; } = [];
 7
 8    public static IEnumerable<(string, GetCampiOut)> GetExamples() =>
 09    [
 010        ("Campi",
 011        new GetCampiOut()
 012        {
 013            Total = 2,
 014            Items =
 015            [
 016                new GetCampiItemOut
 017                {
 018                    Name = "Agreste",
 019                    State = BrazilState.PE,
 020                    City = "Caruaru",
 021                    Capacity = 150,
 022                    Students = 120,
 023                    FillRate = 80,
 024                },
 025                new GetCampiItemOut
 026                {
 027                    Name = "Suassuna",
 028                    State = BrazilState.PE,
 029                    City = "Recife",
 030                    Capacity = 500,
 031                    Students = 234,
 032                    FillRate = 46.80M,
 033                },
 034            ],
 035        }),
 036    ];
 37}
 38
 39public class GetCampiItemOut
 40{
 41    public int Id { get; set; }
 42
 43    /// <summary>
 44    /// Nome
 45    /// </summary>
 46    public string Name { get; set; }
 47
 48    public BrazilState State { get; set; }
 49
 50    /// <summary>
 51    /// Cidade
 52    /// </summary>
 53    public string City { get; set; }
 54
 55    /// <summary>
 56    /// Capacidade total de alunos
 57    /// </summary>
 58    public int Capacity { get; set; }
 59
 60    /// <summary>
 61    /// Total de alunos
 62    /// </summary>
 63    public int Students { get; set; }
 64
 65    /// <summary>
 66    /// Total de professores
 67    /// </summary>
 68    public int Teachers { get; set; }
 69
 70    /// <summary>
 71    /// Taxa de ocupação
 72    /// </summary>
 73    public decimal FillRate { get; set; }
 74}