< Summary

Information
Class: KT.Modules.Report.Core.Domain.ReportDoesntExistsException
Assembly: KT.Modules.Report
File(s): G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Core\Domain\Exceptions.cs
Line coverage
80%
Covered lines: 4
Uncovered lines: 1
Coverable lines: 5
Total lines: 37
Line coverage: 80%
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_ReportId()100%210%
.ctor(...)100%11100%

File(s)

G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Core\Domain\Exceptions.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Threading.Tasks;
 6
 7namespace KT.Modules.Report.Core.Domain
 8{
 9    public class ReportDoesntExistsException : Exception
 10    {
 011        public string ReportId { get; }
 12
 13        public ReportDoesntExistsException(string reportId)
 114            : base($"The report with id '{reportId}' doesn't exists")
 115        {
 116            ReportId = reportId;
 117        }
 18    }
 19
 20    public class ReportsDoesntExistsException : Exception
 21    {
 22        public ReportsDoesntExistsException()
 23            : base("Reports not found")
 24        {
 25        }
 26    }
 27
 28    public class ReportWithUserIdDoesntExistsException : Exception
 29    {
 30        public string UserId { get; }
 31        public ReportWithUserIdDoesntExistsException(string userId)
 32            : base($"The report created by user id '{userId}' doesn't exists")
 33        {
 34            UserId = userId;
 35        }
 36    }
 37}