< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_ScopeId()100%11100%
get_Name()100%11100%
get_Email()100%11100%
get_PasswordHash()100%11100%
get_Salt()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Services/IRegistrationQueue.cs

#LineLine coverage
 1namespace ArturRios.Heimdall.Command.Services;
 2
 3/// <summary>
 4///     What UC-47 hands to the background: who asked to be registered, where, and the password already
 5///     hashed. Whether the address is free is not known yet. The plaintext password never gets here.
 6/// </summary>
 547public sealed record RegistrationRequest(
 548    Guid ScopeId,
 259    string Name,
 9710    string Email,
 2711    byte[] PasswordHash,
 8012    byte[] Salt);
 13
 14/// <summary>
 15///     Takes UC-47's address-dependent work off the request path (AF-47b), as
 16///     <see cref="IPasswordRecoveryQueue" /> does for UC-12. <see cref="RegistrationProcessor" /> does it
 17///     later, so the response cannot be timed to learn whether the address is registered.
 18/// </summary>
 19public interface IRegistrationQueue
 20{
 21    /// <summary>
 22    ///     Queues the request without waiting. Returns <c>false</c> when the queue is full and the
 23    ///     request was dropped; the caller's answer must not change either way.
 24    /// </summary>
 25    bool TryEnqueue(RegistrationRequest request);
 26}