< Summary - Heimdall API

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

Metrics

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

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Input;
 4
 5/// <summary>
 6///     Intent to be sent a password reset link (UC-12, FR-PR-01). <see cref="ScopeId" /> selects
 7///     which lookup applies, exactly as it does for <see cref="LoginCommand" />: present, the person
 8///     is sought among the <c>User</c>s of that scope, whose emails are only unique within it;
 9///     absent, among the <c>ScopeAdmin</c>s and <c>SystemAdmin</c>s, whose emails are unique
 10///     system-wide.
 11/// </summary>
 12public class PasswordRecoveryCommand : BaseCommand
 13{
 14    /// <summary>The email to send the reset link to.</summary>
 23015    public string Email { get; set; } = string.Empty;
 16
 17    /// <summary>
 18    ///     The <c>PublicId</c> of the scope the person belongs to. Supplied by a <c>User</c>,
 19    ///     omitted by a <c>ScopeAdmin</c> or <c>SystemAdmin</c>.
 20    /// </summary>
 12021    public Guid? ScopeId { get; set; }
 22}

Methods/Properties

get_Email()
get_ScopeId()