< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ListOfSpeakersId()100%10%
get_PublicId()100%10%
get_Name()100%10%
get_Status()100%10%
get_SpeakerTime()100%10%
get_QuestionTime()100%10%
get_PausedSpeakerTime()100%10%
get_PausedQuestionTime()100%10%
get_AllSpeakers()100%10%
get_ListClosed()100%10%
get_QuestionsClosed()100%10%
get_StartSpeakerTime()100%10%
get_StartQuestionTime()100%10%
get_CurrentSpeaker()100%10%
get_RemainingSpeakerTime()100%10%
get_RemainingQuestionTime()100%10%
get_CurrentQuestion()100%10%
.ctor()100%10%
AddSpeaker(...)100%10%
RemoveSpeaker(...)100%10%
AddQuestion(...)100%10%
RemoveQuestion(...)100%10%
AddSpeakerSeconds(...)100%10%
AddQuestionSeconds(...)100%10%
NextSpeaker()100%10%
NextQuestion()100%10%
Pause()100%10%
ResumeQuestion()100%10%
StartAnswer()100%10%
ResumeSpeaker()100%10%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Collections.ObjectModel;
 4using System.ComponentModel;
 5using System.Text;
 6using System.Linq;
 7using MUNityBase.Interfances;
 8using MUNity.Base;
 9
 10namespace MUNity.Database.Models.LoS;
 11
 12public class ListOfSpeakers : IListOfSpeakers
 13{
 14
 15    /// <summary>
 16    /// The Id of the List of Speakers will be given a new GUID when the constructor is called.
 17    /// </summary>
 018    public string ListOfSpeakersId { get; set; }
 19
 20    /// <summary>
 21    /// A public Id for example a code that you can give out to others to be able to read the List of Speakers
 22    /// to be able to read but not interact with it. Note that the MUNityBase does not have a logic for this
 23    /// and it will be implemented in the API.
 24    /// </summary>
 025    public string PublicId { get; set; }
 26
 27    /// <summary>
 28    /// A Name of a list of Speakers. That can be displayed. The Name is not used to identify the list, to identitfy the
 29    /// the ListOfSpeakersId.
 30    /// </summary>
 031    public string Name { get; set; }
 32
 33
 34    /// <summary>
 35    /// The Current Status of the list, is someone talking, paused or is the List reset to default.
 36    /// </summary>
 037    public ESpeakerListStatus Status { get; set; }
 38
 39    /// <summary>
 40    /// The time that the Speakers are allowed to talk.
 41    /// </summary>
 042    public TimeSpan SpeakerTime { get; set; }
 43
 44    /// <summary>
 45    /// The time that someone asking a question is allowed to talk and also how long the Speaker is allowed to answer a 
 46    /// </summary>
 047    public TimeSpan QuestionTime { get; set; }
 48
 49    /// <summary>
 50    /// The Remaining Time that a Speaker had when he/she had been paused.
 51    /// </summary>
 052    public TimeSpan PausedSpeakerTime { get; set; }
 53
 54    /// <summary>
 55    /// The Remaining Time that a speaker had when he/she had been paused.
 56    /// </summary>
 057    public TimeSpan PausedQuestionTime { get; set; }
 58
 59    /// <summary>
 60    /// List that holds all Speakers that are inside the Speakers or Questions List and also the Current Speaker/Questio
 61    /// </summary>
 062    public ICollection<Speaker> AllSpeakers { get; set; }
 63
 64    /// <summary>
 65    /// Is the List of Speakers closed. If this is true you should not add people to the Speakers.
 66    /// This will not be catched when calling Speakers.Add()/AddSpeaker("",""). This is more for visual
 67    /// feedback of a closed List.
 68    /// </summary>
 069    public bool ListClosed { get; set; }
 70
 71    /// <summary>
 72    /// Are people allowed to get on the List of questions. This is only for visual feedback, you can
 73    /// technacally still add people to the list.
 74    /// </summary>
 075    public bool QuestionsClosed { get; set; }
 76
 77    /// <summary>
 78    /// The time when to speaker started talking. With the diff between the StartTime and the SpeakerTime the
 79    /// RemainingSpeakerTime will be calculated.
 80    /// </summary>
 081    public DateTime StartSpeakerTime { get; set; }
 82
 83    /// <summary>
 84    /// The time when the question started beeing asked. WIth the diff between this and the QuestionTime the
 85    /// RaminingQuestionTime will be calculated.
 86    /// </summary>
 087    public DateTime StartQuestionTime { get; set; }
 88
 089    public ISpeaker CurrentSpeaker => throw new NotImplementedException();
 90
 091    public TimeSpan RemainingSpeakerTime => throw new NotImplementedException();
 92
 093    public TimeSpan RemainingQuestionTime => throw new NotImplementedException();
 94
 095    public ISpeaker CurrentQuestion => throw new NotImplementedException();
 96
 97    /// <summary>
 98    /// Will create a new ListOfSpeakers and generate a new GUID for it, will also init the Speakers and Questions
 99    /// as an empty collection and set the default SpeakerTime to 3 minutes and the QuestionTime to 30 seconds.
 100    /// </summary>
 0101    public ListOfSpeakers()
 0102    {
 0103        this.ListOfSpeakersId = Guid.NewGuid().ToString();
 0104        this.SpeakerTime = new TimeSpan(0, 3, 0);
 0105        this.QuestionTime = new TimeSpan(0, 0, 30);
 0106        this.PausedSpeakerTime = this.SpeakerTime;
 0107        this.PausedQuestionTime = this.QuestionTime;
 0108        AllSpeakers = new List<Speaker>();
 0109    }
 110
 111    public ISpeaker AddSpeaker(string name, string iso = "")
 0112    {
 0113        throw new NotImplementedException();
 114    }
 115
 116    public void RemoveSpeaker(string id)
 0117    {
 0118        throw new NotImplementedException();
 119    }
 120
 121    public ISpeaker AddQuestion(string name, string iso = "")
 0122    {
 0123        throw new NotImplementedException();
 124    }
 125
 126    public void RemoveQuestion(string id)
 0127    {
 0128        throw new NotImplementedException();
 129    }
 130
 131    public void AddSpeakerSeconds(double seconds)
 0132    {
 0133        throw new NotImplementedException();
 134    }
 135
 136    public void AddQuestionSeconds(double seconds)
 0137    {
 0138        throw new NotImplementedException();
 139    }
 140
 141    public ISpeaker NextSpeaker()
 0142    {
 0143        throw new NotImplementedException();
 144    }
 145
 146    public ISpeaker NextQuestion()
 0147    {
 0148        throw new NotImplementedException();
 149    }
 150
 151    public void Pause()
 0152    {
 0153        throw new NotImplementedException();
 154    }
 155
 156    public void ResumeQuestion()
 0157    {
 0158        throw new NotImplementedException();
 159    }
 160
 161    public void StartAnswer()
 0162    {
 0163        throw new NotImplementedException();
 164    }
 165
 166    public void ResumeSpeaker()
 0167    {
 0168        throw new NotImplementedException();
 169    }
 170
 171}