< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Email()100%11100%
get_Password()100%11100%
get_ScopeId()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/LoginCommand.cs

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Input;
 4
 5/// <summary>
 6///     Intent to authenticate a person and obtain a token (UC-11). <see cref="ScopeId" /> selects
 7///     which lookup applies: present, the person is sought among the <c>User</c>s of that scope,
 8///     whose emails are only unique within it (FR-AU-01); absent, among the <c>ScopeAdmin</c>s and
 9///     <c>SystemAdmin</c>s, whose emails are unique system-wide (FR-AU-02).
 10/// </summary>
 11public class LoginCommand : BaseCommand
 12{
 13    /// <summary>The email to authenticate with.</summary>
 91914    public string Email { get; set; } = string.Empty;
 15
 16    /// <summary>The password to authenticate with.</summary>
 91917    public string Password { get; set; } = string.Empty;
 18
 19    /// <summary>
 20    ///     The <c>PublicId</c> of the scope the person belongs to. Required for a <c>User</c>,
 21    ///     omitted by a <c>ScopeAdmin</c> or <c>SystemAdmin</c>.
 22    /// </summary>
 46923    public Guid? ScopeId { get; set; }
 24}