< Summary - Heimdall API

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

#LineLine coverage
 1using ArturRios.Heimdall.Shared.Messages;
 2using FluentValidation;
 3
 4namespace ArturRios.Heimdall.Command.Input.Validation;
 5
 6/// <summary>
 7///     Input validation for <see cref="SetGoogleSignInCommand" /> (UC-24). Only checks the shape of
 8///     the request — that the caller actually said which value to set; the business rules that
 9///     require data access (the scope exists, the actor owns it) are enforced by the handler.
 10/// </summary>
 11public class SetGoogleSignInCommandValidator : AbstractValidator<SetGoogleSignInCommand>
 12{
 1213    public SetGoogleSignInCommandValidator()
 14    {
 1215        RuleFor(command => command.Enabled)
 1216            .NotNull()
 1217            .WithMessage(ScopeMessages.EnabledRequired);
 1218    }
 19}

Methods/Properties

.ctor()