Summary

Class:ProjectX.PublicApi.Actions.Users.UserInputModel
Assembly:ProjectX.PublicApi
File(s):C:\private\projects\projectx\backend\src\ProjectX.PublicApi\Actions\Users\UserInputModel.cs
Covered lines:8
Uncovered lines:0
Coverable lines:8
Total lines:36
Line coverage:100%

History

File(s)

C:\private\projects\projectx\backend\src\ProjectX.PublicApi\Actions\Users\UserInputModel.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using Newtonsoft.Json;
 3using ProjectX.Entities;
 4
 5namespace ProjectX.PublicApi.Actions.Users
 6{
 7    /// <summary>
 8    /// Input model for update requests
 9    /// </summary>
 10    public class UserInputModel
 11    {
 12        [Required]
 13        [MaxLength(100)]
 1614        public string Name { get; set; }
 15
 16        [Range(16, 100)]
 1717        public byte Age { get; set; }
 18
 1719        public Gender Gender { get; set; }
 20
 21        [MaxLength(512)]
 1622        public string Info { get; set; }
 23
 24        [MaxLength(2)]
 1725        public string Locale { get; set; }
 26
 27        [Range(1, 1000)]
 1728        public int Perimeter { get; set; }
 29
 30        [Range(16, 100)]
 1731        public byte AgeFrom { get; set; }
 32
 33        [Range(16, 100)]
 1734        public byte AgeTo { get; set; }
 35    }
 36}