using VentaUniformes.Application.Persistencia.user.commands.CreateUser;
using VentaUniformes.Application.Sesion.Commands.CreateSesion;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VentaUniformes.Application.Validators.Sesion
{
    public class InCreateSesionValidator : AbstractValidator<InCreateSesionModel>
    {
        public InCreateSesionValidator()
        {
            RuleFor(x => x.Password).NotNull().NotEmpty().MaximumLength(50);
            RuleFor(x => x.UserName).NotNull().NotEmpty().MaximumLength(50);
        }
    }
}
