< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Query.Input.Validation.ListScopeOwnersQueryValidator
Assembly: ArturRios.Heimdall.Query
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Input/Validation/ListScopeOwnersQueryValidator.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 20
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Fully covered methods: 1
Total methods: 1
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Input/Validation/ListScopeOwnersQueryValidator.cs

#LineLine coverage
 1using ArturRios.Heimdall.Shared.Messages;
 2using FluentValidation;
 3
 4namespace ArturRios.Heimdall.Query.Input.Validation;
 5
 6/// <summary>Input validation for <see cref="ListScopeOwnersQuery" /> (UC-07 read c, NFR-10).</summary>
 7public class ListScopeOwnersQueryValidator : PaginatedQueryValidator<ListScopeOwnersQuery>
 8{
 199    public ListScopeOwnersQueryValidator()
 10    {
 11        // Matches Person.Name/Email's own [MaxLength] — a longer filter could never match a row.
 1912        RuleFor(query => query.Name)
 1913            .MaximumLength(200)
 1914            .WithMessage(PaginationMessages.FilterTooLong);
 15
 1916        RuleFor(query => query.Email)
 1917            .MaximumLength(256)
 1918            .WithMessage(PaginationMessages.FilterTooLong);
 1919    }
 20}

Methods/Properties

.ctor()