< Summary

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

#LineLine coverage
 1using FLP.Application.Requests.Bugs;
 2using FluentValidation;
 3
 4namespace FLP.Application.Validators.Bugs;
 5
 6internal class GetBugByIdValidator : AbstractValidator<GetBugByIdRequest>
 7{
 38    public GetBugByIdValidator()
 39    {
 310        RuleFor(f => f.Id)
 311            .NotEmpty()
 312            .WithMessage("Id is required.")
 313            .Must(id => id != Guid.Empty)
 314            .WithMessage("Id must be a valid GUID and cannot be an empty GUID.");
 315    }
 16}

Methods/Properties

.ctor()