< Summary - Syki

Information
Class: Syki.Back.Features.Identity.GetPermissions.GetPermissionsOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/GetPermissions/GetPermissionsOut.cs
Tag: 97_27801654829
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 25
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
get_Items()100%210%
GetExamples()100%210%

File(s)

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

#LineLine coverage
 1namespace Syki.Back.Features.Identity.GetPermissions;
 2
 3public class GetPermissionsOut : IApiDto<GetPermissionsOut>
 4{
 05    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()