< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.CreateUserCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/CreateUserCommand.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 30
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
get_ScopeId()100%11100%
get_Name()100%11100%
get_Email()100%11100%
get_Password()100%11100%
get_ActingPersonId()100%11100%
get_ActingRole()100%11100%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using ArturRios.Heimdall.Shared.Security;
 3using ArturRios.Mediator.Command;
 4
 5namespace ArturRios.Heimdall.Command.Input;
 6
 7/// <summary>
 8///     Intent to create a <c>User</c> within a scope (UC-06 path a). <see cref="ScopeId" /> comes from
 9///     the route; <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller
 10///     from the authenticated caller (for the AF-06e ownership check) and are never bound from the body.
 11///     They are <c>[JsonIgnore]</c>, so they are not deserialized from the body and do not appear in
 12///     the request schema.
 13/// </summary>
 14public class CreateUserCommand : BaseCommand, IActorScoped
 15{
 16    [JsonIgnore]
 4117    public Guid ScopeId { get; set; }
 18
 10619    public string Name { get; set; } = string.Empty;
 20
 12021    public string Email { get; set; } = string.Empty;
 22
 10623    public string Password { get; set; } = string.Empty;
 24
 25    [JsonIgnore]
 4026    public Guid ActingPersonId { get; set; }
 27
 28    [JsonIgnore]
 4029    public int ActingRole { get; set; }
 30}