< Summary

Information
Class: MRA.WebApi.Models.Responses.Errors.ErrorMessages
Assembly: MRA.WebApi
File(s): D:\a\MiguelRomerART\MiguelRomerART\MRA.WebApi\Models\Responses\Errors\ErrorMessages.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 31
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
InternalServer(...)100%11100%
InternalServer(...)100%11100%
InternalServer(...)100%11100%

File(s)

D:\a\MiguelRomerART\MiguelRomerART\MRA.WebApi\Models\Responses\Errors\ErrorMessages.cs

#LineLine coverage
 1namespace MRA.WebApi.Models.Responses.Errors;
 2
 3public static class ErrorMessages
 4{
 5    public static class CollectionErrorMessages
 6    {
 7        public static class FetchDetails
 8        {
 69            public static string InternalServer(string id) => $"Error when retrieving collection with ID '{id}'";
 10
 11        }
 12
 13        public static class FetchList
 14        {
 15            public const string InternalServer = "Error when fetching collections.";
 16        }
 17
 18
 19        public static class Save
 20        {
 21            public const string IdNotProvided = "No correct ID provided for the collection";
 22
 323            public static string InternalServer(string id) => $"Error when saving collection '{id}'";
 24        }
 25
 26        public static class Delete
 27        {
 328            public static string InternalServer(string id) => $"Error when deletting collection '{id}'";
 29        }
 30    }
 31}