< Summary - Syki

Information
Class: Syki.Back.Features.Identity.GetPermissions.GetPermissionsItemOut
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: 3
Coverable lines: 3
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_Id()100%210%
get_Name()100%210%
get_AllowedTypes()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{
 5    public List<GetPermissionsItemOut> Items { get; set; } = [];
 6
 7    public static IEnumerable<(string, GetPermissionsOut)> GetExamples() =>
 8    [
 9        ("Exemplo", new()
 10        {
 11            Items =
 12            [
 13                new() { Id = 0, Name = "Gerenciar perfis de acesso.", AllowedTypes = [UserType.Manager] },
 14                new() { Id = 100, Name = "Gerenciar usuários.", AllowedTypes = [UserType.Manager] },
 15            ],
 16        }),
 17    ];
 18}
 19
 20public class GetPermissionsItemOut
 21{
 022    public int Id { get; set; }
 023    public string Name { get; set; }
 024    public List<UserType> AllowedTypes { get; set; }
 25}