< Summary

Information
Class: FLP.Application.Validators.Bugs.GetBugsValidator
Assembly: FLP.Application
File(s): /home/runner/work/FLP.AzureFunctions/FLP.AzureFunctions/FLP.Application/Validators/Bugs/GetBugsValidator.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 19
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
.ctor()100%11100%

File(s)

/home/runner/work/FLP.AzureFunctions/FLP.AzureFunctions/FLP.Application/Validators/Bugs/GetBugsValidator.cs

#LineLine coverage
 1using FLP.Application.Requests.Bugs;
 2using FluentValidation;
 3
 4namespace FLP.Application.Validators.Bugs;
 5
 6internal class GetBugsValidator : AbstractValidator<GetBugsPaginatedRequest>
 7{
 28    public GetBugsValidator()
 29    {
 210        RuleFor(f => f.Page)
 211            .GreaterThan(0)
 212            .WithMessage("Page number must be greater than 0.");
 213        RuleFor(f => f.PageSize)
 214            .GreaterThan(0)
 215            .WithMessage("Page size must be greater than 0.")
 216            .LessThan(100)
 217            .WithMessage("Page size must be less than 100");
 218    }
 19}

Methods/Properties

.ctor()