< Summary

Class:MUNity.Schema.Authentication.RegisterRequest
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Authentication\RegisterRequest.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:58
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:6
Method coverage:0% (0 of 6)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Username()100%10%
get_Forename()100%10%
get_Lastname()100%10%
get_Password()100%10%
get_Mail()100%10%
get_Birthday()100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Authentication\RegisterRequest.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.Text;
 5
 6namespace MUNity.Schema.Authentication
 7{
 8    /// <summary>
 9    /// The full request to create a new account at the munity API. Note that this will be reworked to
 10    /// only needing a Username, Password and Mail in the next implementations.
 11    /// </summary>
 12    public class RegisterRequest
 13    {
 14        /// <summary>
 15        /// The username that should be used to login and will be used as display name until the user
 16        /// types in a Forename and/or lastname.
 17        /// </summary>
 18        [Required]
 19        [MaxLength(40)]
 020        public string Username { get; set; }
 21
 22        /// <summary>
 23        /// The forname of the user. Is required in this version but will not be used in future implementations
 24        /// of the munity api.
 25        /// </summary>
 26        [Required]
 27        [MaxLength(200)]
 028        public string Forename { get; set; }
 29
 30        /// <summary>
 31        /// the lastname of the user. Is required in this version but will not be used in future implementations
 32        /// of the munity api.
 33        /// </summary>
 34        [Required]
 35        [MaxLength(200)]
 036        public string Lastname { get; set; }
 37
 38        /// <summary>
 39        /// the password.
 40        /// </summary>
 41        [Required]
 42        [MaxLength(300)]
 043        public string Password { get; set; }
 44
 45        /// <summary>
 46        /// The mail address.
 47        /// </summary>
 48        [Required]
 49        [MaxLength(300)]
 050        public string Mail { get; set; }
 51
 52        /// <summary>
 53        /// The birtdate of the user.
 54        /// </summary>
 55        [Required]
 056        public DateTime Birthday { get; set; }
 57    }
 58}