< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.RegisterCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/RegisterCommand.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_ScopeId()100%11100%

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Input;
 4
 5/// <summary>
 6///     Intent to register a password <c>User</c> in a scope without an administrator (UC-47,
 7///     FR-SR-03). Anonymous: nothing here is bound from a token. <see cref="ScopeId" /> is nullable
 8///     so a body that omits it is refused by the validator instead of binding <c>Guid.Empty</c>.
 9/// </summary>
 10public class RegisterCommand : BaseCommand
 11{
 22212    public string Name { get; set; } = string.Empty;
 13
 22214    public string Email { get; set; } = string.Empty;
 15
 22016    public string Password { get; set; } = string.Empty;
 17
 18518    public Guid? ScopeId { get; set; }
 19}