< Summary - Syki

Information
Class: Syki.Back.Features.Identity.GetRole.GetRoleOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/GetRole/GetRoleOut.cs
Tag: 97_27801654829
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 15
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_Description()100%210%
get_BaseType()100%210%
get_Permissions()100%210%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Identity/GetRole/GetRoleOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Identity.GetRole;
 2
 3public class GetRoleOut : IApiDto<GetRoleOut>
 4{
 05    public int Id { get; set; }
 06    public string Name { get; set; }
 07    public string Description { get; set; }
 08    public UserType BaseType { get; set; }
 09    public List<int> Permissions { get; set; }
 10
 11    public static IEnumerable<(string, GetRoleOut)> GetExamples() =>
 012    [
 013        ("Exemplo", new() { Id = 1, Name = "Admin", Description = "Perfil de administrador", BaseType = UserType.Manager
 014    ];
 15}