< Summary

Class:MUNity.Database.Models.Conference.ConferenceRoleAuth
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\ConferenceRoleAuth.cs
Covered lines:6
Uncovered lines:1
Coverable lines:7
Total lines:59
Line coverage:85.7% (6 of 7)
Covered branches:0
Total branches:0
Covered methods:6
Total methods:7
Method coverage:85.7% (6 of 7)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ConferenceRoleAuthId()100%10%
get_RoleAuthName()100%1100%
get_PowerLevel()100%1100%
get_Conference()100%1100%
get_CanEditConferenceSettings()100%1100%
get_CanSeeApplications()100%1100%
get_CanEditParticipations()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.ComponentModel.DataAnnotations.Schema;
 5using System.Linq;
 6using System.Runtime.Serialization;
 7using System.Text.Json.Serialization;
 8using System.Threading.Tasks;
 9
 10namespace MUNity.Database.Models.Conference;
 11
 12/// <summary>
 13/// The authorizations of a role inside a conference.
 14/// </summary>
 15public class ConferenceRoleAuth
 16{
 17    [Key]
 018    public int ConferenceRoleAuthId { get; set; }
 19
 20    [MaxLength(150)]
 921    public string RoleAuthName { get; set; }
 22
 23    /// <summary>
 24    /// The Pwer Level gives a basic idea of what power the
 25    /// user should have. This can also be used when working
 26    /// with the API outside of this context. For example
 27    /// another application that wants to use this framework/API
 28    /// </summary>
 929    public int PowerLevel { get; set; }
 30
 31    /// <summary>
 32    /// Every Role auth is linked to a conference, to protect other Conferences
 33    /// from changing them but also be able to reuse the same role inside of
 34    /// the some conference again. This will create a lot of duplicate data
 35    /// because a lot of conferences will share the same structure but that's
 36    /// not a problem
 37    /// </summary>
 938    public Conference Conference { get; set; }
 39
 40    /// <summary>
 41    /// Can change the Settings of the conference for example the date, name etc.
 42    /// It also allows to change the structure of the conference like Committees,
 43    /// delegations, roles etc.
 44    /// </summary>
 945    public bool CanEditConferenceSettings { get; set; }
 46
 47    /// <summary>
 48    /// The user can see all applications for roles
 49    /// </summary>
 950    public bool CanSeeApplications { get; set; }
 51
 52    /// <summary>
 53    /// The user can change participations for example accept or deny
 54    /// an application for a role, or set someone into the team etc.
 55    /// </summary>
 956    public bool CanEditParticipations { get; set; }
 57
 58
 59}