< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.UpdatePersonCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/UpdatePersonCommandOutput.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 41
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 9
Fully covered methods: 9
Total methods: 9
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_OwnedScopeIds()100%11100%
get_CreatedAt()100%11100%
get_UpdatedAt()100%11100%

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     The person as it stands after a UC-08 update. Exposes only external-facing identifiers and
 7///     has no field for <c>PasswordHash</c> or <c>Salt</c>.
 8/// </summary>
 9public class UpdatePersonCommandOutput : CommandOutput
 10{
 11    /// <summary>Public identifier of the updated person.</summary>
 11112    public Guid Id { get; set; }
 13
 14    /// <summary>Full name after the update.</summary>
 17715    public string Name { get; set; } = string.Empty;
 16
 17    /// <summary>Email address after the update.</summary>
 17618    public string Email { get; set; } = string.Empty;
 19
 20    /// <summary>Role value after the update (see <c>Roles</c>).</summary>
 9821    public int Role { get; set; }
 22
 23    /// <summary>Whether the email is verified; always <c>false</c> straight after an email change.</summary>
 9924    public bool EmailVerified { get; set; }
 25
 26    /// <summary>Public identifier of the scope the person belongs to as a User; <c>null</c> otherwise.</summary>
 9627    public Guid? ScopeId { get; set; }
 28
 29    /// <summary>
 30    ///     Public identifiers of the scopes the person owns, as far as the reader may see them
 31    ///     (FR-PE-19): every one for a System Admin and for the person themselves, and for a Scope
 32    ///     Admin reading somebody else only those the Scope Admin owns too. Empty for non-owners.
 33    /// </summary>
 17734    public IEnumerable<Guid> OwnedScopeIds { get; set; } = new List<Guid>();
 35
 36    /// <summary>Creation timestamp.</summary>
 9437    public DateTime CreatedAt { get; set; }
 38
 39    /// <summary>Update timestamp, stamped by this operation.</summary>
 9440    public DateTime UpdatedAt { get; set; }
 41}