< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_DelegateCountry()100%1100%
get_IsDelegationLeader()100%1100%
get_Title()100%1100%
get_Delegation()100%1100%
get_Committee()100%1100%
get_DelegateType()100%1100%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\Roles\ConferenceDelegateRole.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.Threading.Tasks;
 8using System.Text.Json.Serialization;
 9using MUNity.Database.General;
 10
 11namespace MUNity.Database.Models.Conference.Roles;
 12
 13/// <summary>
 14/// A Delegate Role is an attendee role that everyone can have that is part of a delegation
 15/// and represents some sort of state/country at the conference. The delegation can be
 16/// the same country/state but is not necessarily. You can also create multiply DelegationWishes Roles
 17/// of different states and put them together into a DelegationWishes named Presidents of Europe.
 18///
 19/// Every Delegate Role takes a seat inside a Committee
 20/// </summary>
 21public class ConferenceDelegateRole : AbstractConferenceRole
 22{
 23
 24    /// <summary>
 25    /// The Country that this Delegate Role represents.
 26    /// </summary>
 36627    public Country DelegateCountry { get; set; }
 28
 29    /// <summary>
 30    /// Is this Role a Leader Role of the DelegationWishes
 31    /// </summary>
 432    public bool IsDelegationLeader { get; set; }
 33
 34    /// <summary>
 35    /// The Title of this DelegationWishes Role. This is not the Role Name itself
 36    /// The RoleName can be something like: Delegate and the Title is Delegate of Germany in the Assembly General
 37    /// </summary>
 38
 439    public string Title { get; set; }
 40
 41    /// <summary>
 42    /// A DelegationWishes that this Role is Part for example the DelegationWishes of Germany.
 43    /// </summary>
 444    public Delegation Delegation { get; set; }
 45
 46    /// <summary>
 47    /// The committee that this Role is seated in.
 48    /// </summary>
 28849    public Committee Committee { get; set; }
 50
 51    /// <summary>
 52    /// An additional description of the delegate type, for example:
 53    /// delegate, president, press, non-goverment etc.
 54    /// </summary>
 28455    public string DelegateType { get; set; }
 56
 57}