< Summary

Class:MUNity.Schema.Simulation.JoinAuthenticate
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\JoinAuthenticate.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:40
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_SimulationId()100%10%
get_UserId()100%10%
get_Password()100%10%
get_DisplayName()100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\JoinAuthenticate.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    /// The body of a request to join into a simulation with a given PublicId and password
 10    /// </summary>
 11    public class JoinAuthenticate
 12    {
 13        /// <summary>
 14        /// The id of the Simulation you want to join
 15        /// </summary>
 16        [Required]
 017        public int SimulationId { get; set; }
 18
 19        /// <summary>
 20        /// The public user id of the slot you want to join in
 21        /// </summary>
 22        [Required(ErrorMessage = "Eine Kennung wird benötigt.")]
 23        [MaxLength(100)]
 024        public string UserId { get; set; }
 25
 26        /// <summary>
 27        /// The password of the simulation you want to enter.
 28        /// </summary>
 29        [MaxLength(100)]
 30        [Required(ErrorMessage = "Ein Passwort wird benötogt.")]
 031        public string Password { get; set; }
 32
 33        /// <summary>
 34        /// The display name you want to enter with.
 35        /// </summary>
 36        [MaxLength(50)]
 37        [Required(ErrorMessage = "Ein Anzeigename wird benötigt.")]
 038        public string DisplayName { get; set; }
 39    }
 40}