< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.HardDeleteScopeCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/HardDeleteScopeCommandOutput.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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: 5
Fully covered methods: 5
Total methods: 5
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_UserCount()100%11100%
get_GoogleUserCount()100%11100%
get_ApplicationCount()100%11100%
get_ScopePermissionCount()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/HardDeleteScopeCommandOutput.cs

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     Result of <see cref="Input.HardDeleteScopeCommand" /> (UC-05). Reports the removed scope's
 7///     <c>PublicId</c> and the totals of its Users, Google Users, applications, and scope
 8///     permissions — counted regardless of their individual deletion state. Internal Ids never
 9///     leave the data layer.
 10/// </summary>
 11public class HardDeleteScopeCommandOutput : CommandOutput
 12{
 13    /// <summary>Public identifier of the hard-deleted scope.</summary>
 1814    public Guid Id { get; set; }
 15
 16    /// <summary>Total number of Users (via SCOPE_USER) that belonged to the scope.</summary>
 1717    public int UserCount { get; set; }
 18
 19    /// <summary>Total number of Google Users that belonged to the scope.</summary>
 1620    public int GoogleUserCount { get; set; }
 21
 22    /// <summary>Total number of applications that belonged to the scope.</summary>
 1823    public int ApplicationCount { get; set; }
 24
 25    /// <summary>
 26    ///     Total number of scope permissions that belonged to the scope, removed via
 27    ///     <c>ON DELETE CASCADE</c> rather than explicitly by this handler.
 28    /// </summary>
 1529    public int ScopePermissionCount { get; set; }
 30}