Table of Contents

Class CreateUserCommandValidator

Namespace
KadicAuth.Application.Users.Validators
Assembly
KadicAuth.Application.dll
public class CreateUserCommandValidator : AbstractValidator<CreateUserCommand>, IValidator<CreateUserCommand>, IValidator
Inheritance
object
AbstractValidator<CreateUserCommand>
CreateUserCommandValidator
Implements
IValidator<CreateUserCommand>
IValidator
Inherited Members
AbstractValidator<CreateUserCommand>.Validate(CreateUserCommand)
AbstractValidator<CreateUserCommand>.ValidateAsync(CreateUserCommand, CancellationToken)
AbstractValidator<CreateUserCommand>.Validate(ValidationContext<CreateUserCommand>)
AbstractValidator<CreateUserCommand>.ValidateAsync(ValidationContext<CreateUserCommand>, CancellationToken)
AbstractValidator<CreateUserCommand>.CreateDescriptor()
AbstractValidator<CreateUserCommand>.RuleFor<TProperty>(Expression<Func<CreateUserCommand, TProperty>>)
AbstractValidator<CreateUserCommand>.RuleForEach<TElement>(Expression<Func<CreateUserCommand, IEnumerable<TElement>>>)
AbstractValidator<CreateUserCommand>.RuleSet(string, Action)
AbstractValidator<CreateUserCommand>.When(Func<CreateUserCommand, bool>, Action)
AbstractValidator<CreateUserCommand>.When(Func<CreateUserCommand, ValidationContext<CreateUserCommand>, bool>, Action)
AbstractValidator<CreateUserCommand>.Unless(Func<CreateUserCommand, bool>, Action)
AbstractValidator<CreateUserCommand>.Unless(Func<CreateUserCommand, ValidationContext<CreateUserCommand>, bool>, Action)
AbstractValidator<CreateUserCommand>.WhenAsync(Func<CreateUserCommand, CancellationToken, Task<bool>>, Action)
AbstractValidator<CreateUserCommand>.WhenAsync(Func<CreateUserCommand, ValidationContext<CreateUserCommand>, CancellationToken, Task<bool>>, Action)
AbstractValidator<CreateUserCommand>.UnlessAsync(Func<CreateUserCommand, CancellationToken, Task<bool>>, Action)
AbstractValidator<CreateUserCommand>.UnlessAsync(Func<CreateUserCommand, ValidationContext<CreateUserCommand>, CancellationToken, Task<bool>>, Action)
AbstractValidator<CreateUserCommand>.Include(IValidator<CreateUserCommand>)
AbstractValidator<CreateUserCommand>.Include<TValidator>(Func<CreateUserCommand, TValidator>)
AbstractValidator<CreateUserCommand>.GetEnumerator()
AbstractValidator<CreateUserCommand>.PreValidate(ValidationContext<CreateUserCommand>, ValidationResult)
AbstractValidator<CreateUserCommand>.RaiseValidationException(ValidationContext<CreateUserCommand>, ValidationResult)
AbstractValidator<CreateUserCommand>.OnRuleAdded(IValidationRule<CreateUserCommand>)
AbstractValidator<CreateUserCommand>.ClassLevelCascadeMode
AbstractValidator<CreateUserCommand>.RuleLevelCascadeMode

Constructors

CreateUserCommandValidator(IRoleRepository, ITenantBranchRepository, IStringLocalizer<AuthMessages>)

public CreateUserCommandValidator(IRoleRepository roleRepository, ITenantBranchRepository tenantBranchRepository, IStringLocalizer<AuthMessages> localizer)

Parameters

roleRepository IRoleRepository
tenantBranchRepository ITenantBranchRepository
localizer IStringLocalizer<AuthMessages>