< Summary - Syki

Information
Class: Syki.Back.Features.Campi.GetCampi.GetCampiItemOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Campi/GetCampi/GetCampiOut.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 74
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
get_Id()100%11100%
get_Name()100%11100%
get_State()100%11100%
get_City()100%11100%
get_Capacity()100%11100%
get_Students()100%11100%
get_Teachers()100%11100%
get_FillRate()100%11100%

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{
 5    public int Total { get; set; }
 6    public List<GetCampiItemOut> Items { get; set; } = [];
 7
 8    public static IEnumerable<(string, GetCampiOut)> GetExamples() =>
 9    [
 10        ("Campi",
 11        new GetCampiOut()
 12        {
 13            Total = 2,
 14            Items =
 15            [
 16                new GetCampiItemOut
 17                {
 18                    Name = "Agreste",
 19                    State = BrazilState.PE,
 20                    City = "Caruaru",
 21                    Capacity = 150,
 22                    Students = 120,
 23                    FillRate = 80,
 24                },
 25                new GetCampiItemOut
 26                {
 27                    Name = "Suassuna",
 28                    State = BrazilState.PE,
 29                    City = "Recife",
 30                    Capacity = 500,
 31                    Students = 234,
 32                    FillRate = 46.80M,
 33                },
 34            ],
 35        }),
 36    ];
 37}
 38
 39public class GetCampiItemOut
 40{
 1241    public int Id { get; set; }
 42
 43    /// <summary>
 44    /// Nome
 45    /// </summary>
 1646    public string Name { get; set; }
 47
 1248    public BrazilState State { get; set; }
 49
 50    /// <summary>
 51    /// Cidade
 52    /// </summary>
 1253    public string City { get; set; }
 54
 55    /// <summary>
 56    /// Capacidade total de alunos
 57    /// </summary>
 1258    public int Capacity { get; set; }
 59
 60    /// <summary>
 61    /// Total de alunos
 62    /// </summary>
 1263    public int Students { get; set; }
 64
 65    /// <summary>
 66    /// Total de professores
 67    /// </summary>
 1268    public int Teachers { get; set; }
 69
 70    /// <summary>
 71    /// Taxa de ocupação
 72    /// </summary>
 1273    public decimal FillRate { get; set; }
 74}