Beispiel #1
0
 public ValidaComplexidadeSenhaController(
     ILogger <ValidaComplexidadeSenhaController> logger,
     ValidaSenhaService service
     )
 {
     this._logger  = logger;
     this._service = service;
 }
Beispiel #2
0
        [TestCase("AbTp9!fok", true)] // true
        public void Deve_Validar_Senhas_Corretamente_Para_ConfigTotalCaracteres(
            string password,
            bool expectedIsValid)
        {
            // Arrange
            var service = new ValidaSenhaService();

            //Act
            var result = service.Valida(password);

            //Assert
            Assert.AreEqual(expectedIsValid, result);
        }