Summary

Class:ProjectX.PublicApi.Actions.Events.EventInputModel
Assembly:ProjectX.PublicApi
File(s):C:\private\projects\projectx\backend\src\ProjectX.PublicApi\Actions\Events\EventInputModel.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:35
Line coverage:100%

History

File(s)

C:\private\projects\projectx\backend\src\ProjectX.PublicApi\Actions\Events\EventInputModel.cs

#LineLine coverage
 1using System;
 2using System.ComponentModel.DataAnnotations;
 3using ProjectX.PublicApi.Filters;
 4
 5namespace ProjectX.PublicApi.Actions.Events
 6{
 7    public class EventInputModel
 8    {
 9        [Required]
 10        [Range(-90, 90)]
 811        public double Latitude { get; set; }
 12
 13        [Required]
 14        [Range(-180, 180)]
 815        public double Longitude { get; set; }
 16
 17        [Required]
 1018        public Guid CategoryId { get; set; }
 19
 20        [Required]
 21        [MaxLength(100)]
 1022        public string Title { get; set; }
 23
 24        [Required]
 25        [MaxLength(512)]
 1026        public string Info { get; set; }
 27
 28        [Required]
 29        [DateFromNow]
 1030        public DateTime DateFrom { get; set; }
 31
 32        // [DateGraterThan("DateFrom")]
 733        public DateTime? DateTo { get; set; }
 34    }
 35}