< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.PromoteScopeUserCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/PromoteScopeUserCommandOutput.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 37
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 8
Fully covered methods: 8
Total methods: 8
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_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/PromoteScopeUserCommandOutput.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-23 promotion — the use case returns the updated person
 7///     rather than the join rows it moved. Exposes only external-facing identifiers and has no field
 8///     for <c>PasswordHash</c> or <c>Salt</c>. There is no <c>ScopeId</c> field: a promoted person no
 9///     longer belongs to any scope as a <c>User</c>, so it would be <c>null</c> on every response —
 10///     the scope they now own appears in <see cref="OwnedScopeIds" />.
 11/// </summary>
 12public class PromoteScopeUserCommandOutput : CommandOutput
 13{
 14    /// <summary>Public identifier of the promoted person.</summary>
 2115    public Guid Id { get; set; }
 16
 17    /// <summary>Full name, unchanged by the promotion.</summary>
 2818    public string Name { get; set; } = string.Empty;
 19
 20    /// <summary>Email address, unchanged by the promotion.</summary>
 2821    public string Email { get; set; } = string.Empty;
 22
 23    /// <summary>Role value after the promotion — always <c>ScopeAdmin</c> (see <c>Roles</c>).</summary>
 1724    public int Role { get; set; }
 25
 26    /// <summary>Whether the email is verified; carried over untouched, as UC-23 names no re-verification.</summary>
 1527    public bool EmailVerified { get; set; }
 28
 29    /// <summary>Public identifiers of the scopes the person owns, now including the promoting scope.</summary>
 3030    public IEnumerable<Guid> OwnedScopeIds { get; set; } = new List<Guid>();
 31
 32    /// <summary>Creation timestamp.</summary>
 1633    public DateTime CreatedAt { get; set; }
 34
 35    /// <summary>Update timestamp, stamped by this operation.</summary>
 1636    public DateTime UpdatedAt { get; set; }
 37}