< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.Validation.CreateUserCommandValidator
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/Validation/CreateUserCommandValidator.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 17
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.Command/Input/Validation/CreateUserCommandValidator.cs

#LineLine coverage
 1using FluentValidation;
 2
 3namespace ArturRios.Heimdall.Command.Input.Validation;
 4
 5/// <summary>
 6///     Shape validation for <see cref="CreateUserCommand" /> (UC-06 path a, AF-06d). Scope existence,
 7///     ownership, and email uniqueness are enforced by the handler.
 8/// </summary>
 9public class CreateUserCommandValidator : AbstractValidator<CreateUserCommand>
 10{
 1211    public CreateUserCommandValidator()
 12    {
 1213        RuleFor(command => command.Name).PersonName();
 1214        RuleFor(command => command.Email).PersonEmail();
 1215        RuleFor(command => command.Password).PersonPassword();
 1216    }
 17}

Methods/Properties

.ctor()