< Summary - Estud

Information
Class: Estud.Back.Features.Identity.GetPermissions.GetPermissionsOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/GetPermissions/GetPermissionsOut.cs
Tag: 114_29044117136
Line coverage
9%
Covered lines: 1
Uncovered lines: 10
Coverable lines: 11
Total lines: 25
Line coverage: 9%
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_Items()100%11100%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Identity/GetPermissions/GetPermissionsOut.cs

#LineLine coverage
 1namespace Estud.Back.Features.Identity.GetPermissions;
 2
 3public class GetPermissionsOut : IApiDto<GetPermissionsOut>
 4{
 165    public List<GetPermissionsItemOut> Items { get; set; } = [];
 6
 7    public static IEnumerable<(string, GetPermissionsOut)> GetExamples() =>
 08    [
 09        ("Exemplo", new()
 010        {
 011            Items =
 012            [
 013                new() { Id = 0, Name = "Gerenciar perfis de acesso.", AllowedTypes = [UserType.Manager] },
 014                new() { Id = 100, Name = "Gerenciar usuários.", AllowedTypes = [UserType.Manager] },
 015            ],
 016        }),
 017    ];
 18}
 19
 20public class GetPermissionsItemOut
 21{
 22    public int Id { get; set; }
 23    public string Name { get; set; }
 24    public List<UserType> AllowedTypes { get; set; }
 25}

Methods/Properties

get_Items()
GetExamples()