Summary

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

History

Metrics

MethodCyclomatic complexity  NPath complexity  Sequence coverage  Branch coverage  
.ctor()10100100

File(s)

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

#LineLine coverage
 1using System;
 2using System.ComponentModel.DataAnnotations;
 3using ProjectX.PublicApi.Filters;
 4
 5namespace ProjectX.PublicApi.Actions.Events
 6{
 7    public class GetEventsQuery
 8    {
 9        [Required]
 10        [Range(-90, 90)]
 611        public double? Latitude { get; set; }
 12
 13        [Required]
 14        [Range(-180, 180)]
 615        public double? Longitude { get; set; }
 16
 17        [DateFromNow]
 418        public DateTime? DateFrom { get; set; }
 19
 20        [Range(1, 1000)]
 621        public int Take { get; set; } = 20;
 22
 23        [Range(0, int.MaxValue)]
 424        public int Skip { get; set; } = 0;
 25    }
 26}