< Summary

Information
Class: KT.Modules.Report.Core.Domain.ReportWithUserIdDoesntExistsException
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_UserId()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    {
 11        public string ReportId { get; }
 12
 13        public ReportDoesntExistsException(string reportId)
 14            : base($"The report with id '{reportId}' doesn't exists")
 15        {
 16            ReportId = reportId;
 17        }
 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    {
 030        public string UserId { get; }
 31        public ReportWithUserIdDoesntExistsException(string userId)
 132            : base($"The report created by user id '{userId}' doesn't exists")
 133        {
 134            UserId = userId;
 135        }
 36    }
 37}

Methods/Properties

get_UserId()
.ctor(System.String)