< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_VoteId()100%10%
get_UserId()100%10%
get_Choice()100%10%
.ctor(...)100%10%
.ctor()100%10%

File(s)

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

#LineLine coverage
 1using MUNity.Base;
 2using System;
 3using System.Collections.Generic;
 4using System.Text;
 5
 6namespace MUNity.Schema.Simulation
 7{
 8
 9    /// <summary>
 10    /// Event Arguments for a given vote for the simulation socket.
 11    /// </summary>
 12    public class VotedEventArgs : EventArgs
 13    {
 14        /// <summary>
 15        /// The id of the voting
 16        /// </summary>
 017        public string VoteId { get; set; }
 18
 19        /// <summary>
 20        /// the simulationUserId of the user that has voted.
 21        /// </summary>
 022        public int UserId { get; set; }
 23
 24        /// <summary>
 25        /// The index of the choice that this user has picked.
 26        /// </summary>
 027        public EVoteStates Choice { get; set; }
 28
 29        /// <summary>
 30        /// Creates a new Instance of this voting with all given arguments
 31        /// </summary>
 32        /// <param name="voteId"></param>
 33        /// <param name="userId"></param>
 34        /// <param name="choice"></param>
 035        public VotedEventArgs(string voteId, int userId, EVoteStates choice)
 036        {
 037            this.VoteId = voteId;
 038            this.UserId = userId;
 039            this.Choice = choice;
 040        }
 41
 42        /// <summary>
 43        /// Creates a new instance of voting.
 44        /// </summary>
 045        public VotedEventArgs()
 046        {
 47
 048        }
 49    }
 50}