< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_Name()100%11100%
get_Email()100%11100%
get_Role()100%11100%
get_EmailVerified()100%11100%
get_ScopeId()100%11100%
get_CreatedAt()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/CreatePersonCommandOutput.cs

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     The person created by any UC-06 path. Exposes only external-facing identifiers; never
 7///     <c>PasswordHash</c> / <c>Salt</c>. <see cref="ScopeId" /> is populated for paths a and c and
 8///     <c>null</c> for path b (admins have no scope association at creation).
 9/// </summary>
 10public class CreatePersonCommandOutput : CommandOutput
 11{
 12    /// <summary>Public identifier of the created person.</summary>
 5013    public Guid Id { get; set; }
 14
 15    /// <summary>Full name.</summary>
 6816    public string Name { get; set; } = string.Empty;
 17
 18    /// <summary>Email address.</summary>
 6919    public string Email { get; set; } = string.Empty;
 20
 21    /// <summary>Assigned role value (see <c>Roles</c>).</summary>
 4522    public int Role { get; set; }
 23
 24    /// <summary>Whether the email is verified (always <c>false</c> at creation).</summary>
 3925    public bool EmailVerified { get; set; }
 26
 27    /// <summary>Public identifier of the associated scope (paths a and c); <c>null</c> for path b.</summary>
 3928    public Guid? ScopeId { get; set; }
 29
 30    /// <summary>Creation timestamp.</summary>
 3931    public DateTime CreatedAt { get; set; }
 32}