public ActionResult <bool> ValidarSenha([FromBody] RequisicaoValidarSenha requisição)
        {
            var senhaVálida = _senhaValidador.SenhaEstáVálida(requisição.Senha);

            return(Ok(new RespostaValidacaoSenha {
                SenhaVálida = senhaVálida
            }));
        }
Ejemplo n.º 2
0
        public void SenhaEstáVálidaDeveRetornarTrueCasoSenhaAtendaTodosOsCritériosTendoNoveCaracteres()
        {
            const string senha = "Teste@789";

            _validador.SenhaEstáVálida(senha).Should().BeTrue();
        }