< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Domain.Entities.ScopeUser
Assembly: ArturRios.Heimdall.Domain
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Domain/ArturRios.Heimdall.Domain/Entities/ScopeUser.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/ScopeUser.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 belongs to it (a
 5///     person with the <c>User</c> role). <see cref="PersonId" /> is unique across this table,
 6///     enforcing that a User belongs to exactly one scope, while a scope may have many users. Not
 7///     an independently addressable resource, so it carries no <c>PublicId</c>.
 8/// </summary>
 9public class ScopeUser
 10{
 11    /// <summary>Foreign key to the <see cref="Scope" /> the person belongs to (internal Id). Required.</summary>
 50812    public long ScopeId { get; set; }
 13
 14    /// <summary>
 15    ///     Foreign key to the <see cref="Person" /> (internal Id), which must have the <c>User</c>
 16    ///     role. Required and unique across this table.
 17    /// </summary>
 17718    public long PersonId { get; set; }
 19
 20    // Navigation properties
 21
 22    /// <summary>The scope the person belongs to.</summary>
 28523    public Scope Scope { get; set; } = null!;
 24
 25    /// <summary>The member person.</summary>
 726    public Person Person { get; set; } = null!;
 27}