< Summary

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

#LineLine coverage
 1using FLP.Application.Requests.Bugs;
 2using FluentValidation;
 3
 4namespace FLP.Application.Validators.Bugs;
 5
 6internal class CreateBugValidator : AbstractValidator<CreateBugRequest>
 7{
 38    public CreateBugValidator()
 39    {
 310        RuleFor(f => f.Title)
 311            .MinimumLength(5)
 312            .WithMessage("Title must be at least 5 characters long.")
 313            .MaximumLength(50)
 314            .WithMessage("Title must not exceed 50 characters.")
 315            .NotEmpty()
 316            .WithMessage("Title is required.");
 17
 318        RuleFor(f => f.Description)
 319            .MinimumLength(10)
 320            .WithMessage("Description must be at least 10 characters long.")
 321            .MaximumLength(500)
 322            .WithMessage("Description must not exceed 500 characters.")
 323            .NotEmpty()
 324            .WithMessage("Description is required.");
 25
 326    }
 27}

Methods/Properties

.ctor()