< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_GoogleId()100%11100%
get_Name()100%11100%
get_Email()100%11100%
get_EmailVerified()100%11100%
get_ProfilePictureUrl()100%11100%
get_IsDeleted()100%11100%
get_ScopeId()100%11100%
get_CreatedAt()100%11100%
get_UpdatedAt()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Output/GoogleUserOutput.cs

#LineLine coverage
 1using ArturRios.Mediator.Query;
 2
 3namespace ArturRios.Heimdall.Query.Output;
 4
 5/// <summary>
 6///     Google User data returned by the UC-27 view/list queries. Carries FR-GO-05's registered fields
 7///     plus the timestamps every other output exposes, with the internal <c>Id</c> left out
 8///     (NFR-15). There is no password field to omit — a Google User has none, because authentication
 9///     is delegated to Google.
 10/// </summary>
 11public class GoogleUserOutput : QueryOutput
 12{
 13    /// <summary>Public identifier of the Google User.</summary>
 8014    public Guid Id { get; set; }
 15
 16    /// <summary>
 17    ///     Google's stable <c>sub</c> claim. Exposed deliberately: it is the identifier FR-GO-08 makes
 18    ///     unique within the scope, and an administrator correlating the record with a Google account
 19    ///     has nothing else to correlate on. It is not secret — a caller who may read this record
 20    ///     already knows who it belongs to.
 21    /// </summary>
 9722    public string GoogleId { get; set; } = string.Empty;
 23
 24    /// <summary>Full name, as it stood on the Google ID token the account last signed up with.</summary>
 10625    public string Name { get; set; } = string.Empty;
 26
 27    /// <summary>Email address.</summary>
 9728    public string Email { get; set; } = string.Empty;
 29
 30    /// <summary>Whether Google reported the address as verified.</summary>
 5431    public bool EmailVerified { get; set; }
 32
 33    /// <summary>Profile picture URL, or <c>null</c> when the token carried no <c>picture</c> claim.</summary>
 5434    public string? ProfilePictureUrl { get; set; }
 35
 36    /// <summary>Whether the Google User is logically deleted.</summary>
 5737    public bool IsDeleted { get; set; }
 38
 39    /// <summary>Public identifier of the one scope the Google User belongs to (FR-GO-06).</summary>
 5740    public Guid ScopeId { get; set; }
 41
 42    /// <summary>Creation timestamp.</summary>
 5343    public DateTime CreatedAt { get; set; }
 44
 45    /// <summary>Last update timestamp.</summary>
 5346    public DateTime UpdatedAt { get; set; }
 47}