< Summary

Information
Class: KT.Modules.Report.Presentation.Dto.LocationDto
Assembly: KT.Modules.Report
File(s): G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Presentation\Dto\ResponseGetReportsDto.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 38
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Latitude()100%11100%
get_Longitude()100%11100%
get_Locality()100%11100%
get_Neighbourhood()100%11100%

File(s)

G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Presentation\Dto\ResponseGetReportsDto.cs

#LineLine coverage
 1using KT.Modules.Report.Core.Domain;
 2using System;
 3using System.Collections.Generic;
 4using System.Linq;
 5using System.Text;
 6using System.Threading.Tasks;
 7
 8namespace KT.Modules.Report.Presentation.Dto
 9{
 10    public class ResponseGetReportsDto
 11    {
 12        public List<ReportDto> reports { get; set; }
 13
 14        public ResponseGetReportsDto ()
 15        {
 16            this.reports = [];
 17        }
 18    }
 19
 20    public class LocationDto
 21    {
 222        public required float Latitude { get; set; }
 223        public required float Longitude { get; set; }
 224        public required Locality Locality { get; set; }
 225        public required string Neighbourhood { get; set; }
 26    }
 27
 28    public class ReportDto
 29    {
 30        public required string Id { get; set; }
 31        public required LocationDto Location { get; set; }
 32        public required ReportType Type { get; set; }
 33        public required string Description { get; set; }
 34        public required string Title { get; set; }
 35        public required DateTime CreatedAt { get; set; }
 36        public DateTime UpdatedAt { get; set; }
 37    }
 38}