< Summary

Class:MUNity.Database.Models.LoS.Speaker
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Speakerlists\Speaker.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:56
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:7
Method coverage:0% (0 of 7)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Id()100%10%
get_Name()100%10%
get_Iso()100%10%
get_Mode()100%10%
get_OrdnerIndex()100%10%
get_ListOfSpeakers()100%10%
CompareTo(...)100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Speakerlists\Speaker.cs

#LineLine coverage
 1using MUNity.Base;
 2using MUNityBase.Interfances;
 3using System;
 4using System.Collections.Generic;
 5using System.ComponentModel;
 6using System.Runtime.CompilerServices;
 7using System.Text;
 8using System.Text.Json.Serialization;
 9
 10namespace MUNity.Database.Models.LoS;
 11
 12/// <summary>
 13/// A Speaker is someone who can be added to the Speakers or Questions inside a List of Speakers.
 14/// You can give any time of name, so you could set it to a person a Country or DelegationWishes.
 15/// </summary>
 16public class Speaker : ISpeaker
 17{
 18
 19    /// <summary>
 20    /// The Id of the Speaker. This can and should change every time
 21    /// even if the same person is in one of the lists twice to be able to identify it exact.
 22    /// The Id has nothing to do with the Paricipant, DelegationWishes, Country etc.
 23    /// </summary>
 024    public string Id { get; set; }
 25
 26    /// <summary>
 27    /// The Name that will be displayed.
 28    /// </summary>
 029    public string Name { get; set; }
 30
 31    /// <summary>
 32    /// An Iso code because mostly Counties will be used in this list. You could use the
 33    /// Iso to identify an icon.
 34    /// </summary>
 035    public string Iso { get; set; }
 36
 37    /// <summary>
 38    /// The Mode if the Speaker is on the List of Speakers or asking a question
 39    /// </summary>
 040    public SpeakerModes Mode { get; set; }
 41
 42    /// <summary>
 43    /// The Index of the Speaker.
 44    /// </summary>
 045    public int OrdnerIndex { get; set; }
 46
 47    /// <summary>
 48    /// The Parent SpeakerlistId
 49    /// </summary>
 050    public ListOfSpeakers ListOfSpeakers { get; set; }
 51
 52    public int CompareTo(ISpeaker other)
 053    {
 054        return this.GetHashCode() - other.GetHashCode();
 055    }
 56}