< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Domain.Entities.ScopeOwner
Assembly: ArturRios.Heimdall.Domain
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Domain/ArturRios.Heimdall.Domain/Entities/ScopeOwner.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 27
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 4
Fully covered methods: 4
Total methods: 4
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ScopeId()100%11100%
get_PersonId()100%11100%
get_Scope()100%11100%
get_Person()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Domain/ArturRios.Heimdall.Domain/Entities/ScopeOwner.cs

#LineLine coverage
 1namespace ArturRios.Heimdall.Domain.Entities;
 2
 3/// <summary>
 4///     Join row linking a <see cref="Scope" /> to a <see cref="Person" /> who owns it (a person
 5///     with the <c>ScopeAdmin</c> role). A scope may have many owners and a Scope Admin may own
 6///     many scopes. Not an independently addressable resource, so it carries no <c>PublicId</c>;
 7///     its composite key is <c>(ScopeId, PersonId)</c>, configured in the persistence layer.
 8/// </summary>
 9public class ScopeOwner
 10{
 11    /// <summary>Foreign key to the owned <see cref="Scope" /> (internal Id). Part of the composite key.</summary>
 69212    public long ScopeId { get; set; }
 13
 14    /// <summary>
 15    ///     Foreign key to the owning <see cref="Person" /> (internal Id), which must have the
 16    ///     <c>ScopeAdmin</c> role. Part of the composite key.
 17    /// </summary>
 28718    public long PersonId { get; set; }
 19
 20    // Navigation properties
 21
 22    /// <summary>The owned scope.</summary>
 22723    public Scope Scope { get; set; } = null!;
 24
 25    /// <summary>The owning person.</summary>
 10826    public Person Person { get; set; } = null!;
 27}