< Summary

Information
Class: MRA.DTO.Exceptions.Collections.CollectionNotFoundException
Assembly: MRA.DTO
File(s): D:\a\MiguelRomerART\MiguelRomerART\MRA.DTO\Exceptions\Collections\CollectionNotFoundException.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 11
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
ErrorMessage(...)100%11100%
.ctor(...)100%11100%

File(s)

D:\a\MiguelRomerART\MiguelRomerART\MRA.DTO\Exceptions\Collections\CollectionNotFoundException.cs

#LineLine coverage
 1namespace MRA.DTO.Exceptions.Collections;
 2
 3public class CollectionNotFoundException : DocumentNotFoundException
 4{
 65    public static string ErrorMessage(string collectionId) =>  $"The collection with ID '{collectionId}' was not found."
 6
 7    public CollectionNotFoundException(string collectionId)
 38    : base(ErrorMessage(collectionId))
 9    {
 310    }
 11}