< Summary

Class:MUNity.Schema.Simulation.CreatedVoteModel
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\Voting\CreatedVoteModel.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:39
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:4
Method coverage:0% (0 of 4)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_CreatedVoteModelId()100%10%
get_Text()100%10%
get_AllowAbstention()100%10%
get_AllowedUsers()100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\Voting\CreatedVoteModel.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5namespace MUNity.Schema.Simulation
 6{
 7    /// <summary>
 8    /// Schema for created votes.
 9    /// This SChema can be sent to everyone and the server or client
 10    /// implementation needs to handle the rights to vote.
 11    ///
 12    /// This way its possible for everyone to see that a voting is ongoing
 13    /// and who as already voted and who has voted for what.
 14    ///
 15    /// There is no secret voting in this implementation!
 16    /// </summary>
 17    public class CreatedVoteModel
 18    {
 19        /// <summary>
 20        /// The Id of the new created Voting.
 21        /// </summary>
 022        public string CreatedVoteModelId { get; set; }
 23
 24        /// <summary>
 25        /// The DIsplay Text of the voting.
 26        /// </summary>
 027        public string Text { get; set; }
 28
 29        /// <summary>
 30        /// Is voting abstent allowed.
 31        /// </summary>
 032        public bool AllowAbstention { get; set; }
 33
 34        /// <summary>
 35        /// List of the userIds that are allowed to vote.
 36        /// </summary>
 037        public List<int> AllowedUsers { get; set; }
 38    }
 39}