< Summary

Information
Class: MRA.DTO.Exceptions.DrawingNotFoundException
Assembly: MRA.DTO
File(s): D:\a\MiguelRomerART\MiguelRomerART\MRA.DTO\Exceptions\DrawingNotFoundException.cs
Line coverage
42%
Covered lines: 3
Uncovered lines: 4
Coverable lines: 7
Total lines: 21
Line coverage: 42.8%
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
.ctor()100%210%
.ctor(...)100%11100%
.ctor(...)100%210%
CustomMessage(...)100%11100%

File(s)

D:\a\MiguelRomerART\MiguelRomerART\MRA.DTO\Exceptions\DrawingNotFoundException.cs

#LineLine coverage
 1
 2namespace MRA.DTO.Exceptions;
 3
 4public class DrawingNotFoundException : DocumentNotFoundException
 5{
 06    public DrawingNotFoundException() : base("")
 7    {
 08    }
 9
 10    public DrawingNotFoundException(string drawingId)
 511        : base(CustomMessage(drawingId))
 12    {
 513    }
 14
 15    public DrawingNotFoundException(string drawingId, Exception inner)
 016        : base(CustomMessage(drawingId), inner)
 17    {
 018    }
 19
 720    public static string CustomMessage(string id) => $"The drawing with ID \"{id}\" was not provided.";
 21}