< Summary

Information
Class: KT.Modules.Report.Presentation.Dto.ResponseGetReportsDto
Assembly: KT.Modules.Report
File(s): G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Presentation\Dto\ResponseGetReportsDto.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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_reports()100%11100%
.ctor()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    {
 812        public List<ReportDto> reports { get; set; }
 13
 414        public ResponseGetReportsDto ()
 415        {
 416            this.reports = [];
 417        }
 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    {
 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}

Methods/Properties

get_reports()
.ctor()