< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.CreateScopeCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/CreateScopeCommand.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_Name()100%11100%
get_Description()100%11100%
get_OwnerIds()100%11100%

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Input;
 4
 5/// <summary>
 6///     Intent to create a new scope (UC-01), designating one or more existing administrators —
 7///     <c>ScopeAdmin</c> or <c>SystemAdmin</c> persons — as its initial owners. Owners are
 8///     referenced by their <c>PublicId</c> (GUID), never by internal Id.
 9/// </summary>
 10public class CreateScopeCommand : BaseCommand
 11{
 12    /// <summary>Scope display name. Required and must be unique across all scopes.</summary>
 10313    public string Name { get; set; } = string.Empty;
 14
 15    /// <summary>Optional description of the scope's purpose.</summary>
 4916    public string? Description { get; set; }
 17
 18    /// <summary>
 19    ///     Public identifiers of the persons to designate as initial owners. Each must reference an
 20    ///     existing, non-logically-deleted person with the <c>ScopeAdmin</c> or <c>SystemAdmin</c> role.
 21    ///     At least one is required.
 22    /// </summary>
 10423    public IEnumerable<Guid> OwnerIds { get; set; } = new List<Guid>();
 24}