< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.CreateScopeCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/CreateScopeCommandOutput.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
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: 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_Description()100%11100%
get_GoogleSignInEnabled()100%11100%
get_SelfRegistrationEnabled()100%11100%
get_EmailVerificationUrl()100%11100%
get_PasswordResetUrl()100%11100%
get_OwnerIds()100%11100%
get_CreatedAt()100%11100%

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     The scope created by <see cref="Input.CreateScopeCommand" /> (UC-01). Only externally-facing
 7///     <c>PublicId</c> identifiers are exposed; internal Ids never leave the data layer.
 8/// </summary>
 9public class CreateScopeCommandOutput : CommandOutput
 10{
 11    /// <summary>Public identifier of the created scope.</summary>
 1012    public Guid Id { get; set; }
 13
 14    /// <summary>Scope display name.</summary>
 1615    public string Name { get; set; } = string.Empty;
 16
 17    /// <summary>Scope description, if any.</summary>
 818    public string? Description { get; set; }
 19
 20    /// <summary>Whether Google sign-in is enabled for the scope (defaults to <c>false</c> on creation).</summary>
 821    public bool GoogleSignInEnabled { get; set; }
 22
 23    /// <summary>Whether anonymous self-registration is open for the scope (UC-47).</summary>
 824    public bool SelfRegistrationEnabled { get; set; }
 25
 26    /// <summary>Base link for this scope's verification emails, or <c>null</c> to use the global one.</summary>
 827    public string? EmailVerificationUrl { get; set; }
 28
 29    /// <summary>Base link for this scope's password-reset emails, or <c>null</c> to use the global one.</summary>
 830    public string? PasswordResetUrl { get; set; }
 31
 32    /// <summary>Public identifiers of the persons designated as the scope's initial owners.</summary>
 1833    public IEnumerable<Guid> OwnerIds { get; set; } = new List<Guid>();
 34
 35    /// <summary>Creation timestamp.</summary>
 836    public DateTime CreatedAt { get; set; }
 37}