< Summary

Class:MUNity.Schema.Simulation.CreateSimulationVoting
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\Voting\CreateSimulationVoting.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:36
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_Text()100%10%
get_AllowAbstention()100%10%
get_Mode()100%10%
get_CloseTime()100%10%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.Text;
 5
 6namespace MUNity.Schema.Simulation
 7{
 8    /// <summary>
 9    /// Body to create a new voting.
 10    /// </summary>
 11    public class CreateSimulationVoting : SimulationRequest
 12    {
 13        /// <summary>
 14        /// The display Text of the voting.
 15        /// </summary>
 16        [Required(ErrorMessage = "Ein Anzeigetext wird benötigt.")]
 17        [MaxLength(200)]
 018        public string Text { get; set; }
 19
 20        /// <summary>
 21        /// Is Anstention an allowed option to vote.
 22        /// </summary>
 023        public bool AllowAbstention { get; set; }
 24
 25        /// <summary>
 26        /// The Mode of the voting. Who is allowed to vote.
 27        /// </summary>
 028        public EVotingMode Mode { get; set; } = EVotingMode.JustDelegates;
 29
 30        /// <summary>
 31        /// The time when the voting should be done. Set this to null if you want the voting to be
 32        /// stoped manual.
 33        /// </summary>
 034        public DateTime? CloseTime { get; set; }
 35    }
 36}