• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AndreuCodina / CrossValidation / 5940258519

22 Aug 2023 02:32PM UTC coverage: 92.715% (-2.7%) from 95.391%
5940258519

Pull #74

github

web-flow
Merge e4885161e into 230517030
Pull Request #74: Problem Details MVP

431 of 486 branches covered (88.68%)

Branch coverage included in aggregate %.

299 of 299 new or added lines in 21 files covered. (100.0%)

1389 of 1477 relevant lines covered (94.04%)

176.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/CrossValidation/DependencyInjection/BusinessExceptionExtensions.cs
1
using CrossValidation.Exceptions;
2
using Microsoft.AspNetCore.Mvc;
3

4
namespace CrossValidation.DependencyInjection;
5

6
public static class BusinessExceptionExtensions
7
{
8
    public static ProblemDetails ToProblemDetails(this BusinessException exception)
9
    {
10
        var problemDetails = new ProblemDetails();
×
11
        var mapper = new ProblemDetailsMapper(problemDetails);
×
12
        mapper.Map(exception);
×
13
        return problemDetails;
×
14
    }
15
    
16
    public static ProblemDetails ToProblemDetails(this BusinessListException exception)
17
    {
18
        var problemDetails = new ProblemDetails();
×
19
        var mapper = new ProblemDetailsMapper(problemDetails);
×
20
        mapper.Map(exception);
×
21
        return problemDetails;
×
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc