< Summary

Class:MUNity.Database.Models.Conference.Roles.ConferenceTeamRole
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\Roles\ConferenceTeamRole.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:42
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0
Covered methods:4
Total methods:4
Method coverage:100% (4 of 4)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ParentTeamRole()100%1100%
get_TeamRoleLevel()100%1100%
get_TeamRoleGroup()100%1100%
.ctor()100%1100%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\Roles\ConferenceTeamRole.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations.Schema;
 4using System.Linq;
 5using System.Runtime.Serialization;
 6using System.Text.Json.Serialization;
 7using System.Threading.Tasks;
 8
 9namespace MUNity.Database.Models.Conference.Roles;
 10
 11/// <summary>
 12/// A team role is any role for organization purposes. Note that anyone that is assigned
 13/// this type of role will have access to the inside area of the conference.
 14/// </summary>
 15public class ConferenceTeamRole : AbstractConferenceRole
 16{
 17
 18    /// <summary>
 19    /// A parent role that is above this role.
 20    /// </summary>
 1421    public ConferenceTeamRole ParentTeamRole { get; set; }
 22
 23    /// <summary>
 24    /// The Level of this row. This is not assigned from the amount of roles above this roles.
 25    /// You can create different custom PowerLevels for team roles to allow different types of access
 26    /// to the role. With 1 as the highest rank, 2 as the next powerful rank and so on.
 27    /// </summary>
 1728    public int TeamRoleLevel { get; set; }
 29
 30
 31    /// <summary>
 32    /// Every role is a part of a group, for example could there be different roles for
 33    /// substantive planing, framework planing, team coordination, equipment coordinator etc.
 34    /// and all of this role could share a group of: "head of organization".
 35    /// </summary>
 1736    public TeamRoleGroup TeamRoleGroup { get; set; }
 37
 1738    public ConferenceTeamRole()
 1739    {
 1740        this.AllowMultipleParticipations = true;
 1741    }
 42}