< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.RevokeApplicationCredentialCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/RevokeApplicationCredentialCommand.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_ScopeId()100%11100%
get_Id()100%11100%
get_CredentialId()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/RevokeApplicationCredentialCommand.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///     Revokes one of an application's credentials (UC-55, FR-AP-12). Every field comes from the
 9///     route or the actor.
 10/// </summary>
 11public class RevokeApplicationCredentialCommand : BaseCommand, IActorScoped
 12{
 13    /// <summary>The scope's <c>PublicId</c>, from the route.</summary>
 14    [JsonIgnore]
 3515    public Guid ScopeId { get; set; }
 16
 17    /// <summary>The application's <c>PublicId</c>, from the route.</summary>
 18    [JsonIgnore]
 3419    public Guid Id { get; set; }
 20
 21    /// <summary>The credential's <c>PublicId</c>, from the route.</summary>
 22    [JsonIgnore]
 3023    public Guid CredentialId { get; set; }
 24
 25    [JsonIgnore]
 3426    public Guid ActingPersonId { get; set; }
 27
 28    [JsonIgnore]
 3429    public int ActingRole { get; set; }
 30}