< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.CreateAdminCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/CreateAdminCommand.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 19
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 4
Fully covered methods: 4
Total methods: 4
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Name()100%11100%
get_Email()100%11100%
get_Password()100%11100%
get_Role()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/CreateAdminCommand.cs

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Input;
 4
 5/// <summary>
 6///     Intent to create a <c>ScopeAdmin</c> or <c>SystemAdmin</c> person without any scope
 7///     association (UC-06 path b). <see cref="Role" /> is the <c>Roles</c> enum value and must be
 8///     <c>SystemAdmin</c> or <c>ScopeAdmin</c>.
 9/// </summary>
 10public class CreateAdminCommand : BaseCommand
 11{
 20012    public string Name { get; set; } = string.Empty;
 13
 20914    public string Email { get; set; } = string.Empty;
 15
 20116    public string Password { get; set; } = string.Empty;
 17
 11918    public int Role { get; set; }
 19}