< Summary

Information
Class: KT.Modules.Report.Presentation.Dto.ReportDto
Assembly: KT.Modules.Report
File(s): G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Presentation\Dto\ResponseGetReportsDto.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
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_Id()100%11100%
get_Location()100%11100%
get_Type()100%11100%
get_Description()100%11100%
get_Title()100%11100%
get_CreatedAt()100%11100%
get_UpdatedAt()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    {
 22        public required float Latitude { get; set; }
 23        public required float Longitude { get; set; }
 24        public required Locality Locality { get; set; }
 25        public required string Neighbourhood { get; set; }
 26    }
 27
 28    public class ReportDto
 29    {
 230        public required string Id { get; set; }
 231        public required LocationDto Location { get; set; }
 232        public required ReportType Type { get; set; }
 233        public required string Description { get; set; }
 234        public required string Title { get; set; }
 235        public required DateTime CreatedAt { get; set; }
 236        public DateTime UpdatedAt { get; set; }
 37    }
 38}