public void Setup()
 {
     _repository            = new MockRepository(MockBehavior.Strict);
     _mockCustomMessage     = _repository.Create <ICustomMessage>();
     _mockUsuarioService    = _repository.Create <IUsuarioService>();
     _mockusuarioRepository = _repository.Create <IUsuarioRepository>();
     _recoverPasswordr      = new RecoverPasswordController(_mockUsuarioService.Object);
 }
        public void RecuperarSenhaTeste()
        {
            var Email = "*****@*****.**";
            var Senha = "1234567890";

            _mockUsuarioService.Setup(a => a.VerificarEmail(Email)).Returns(It.IsAny <bool>()).Verifiable();

            _recoverPasswordr = new RecoverPasswordController(_mockUsuarioService.Object);

            _recoverPasswordr.Index(Email);

            _repository.VerifyAll();
        }