Beispiel #1
0
        public void Testar_ValidanteAndCreateToken_com_usuario_valido()
        {
            IAppAuthenticate appAuthenticate = BuilderAppAuthenticate.New()
                                               .Com(new AuthUser()
            {
                Email    = validEmail,
                Password = validPassword
            })
                                               .Build();

            var authUser = new AuthUser()
            {
                Email = validEmail, Password = validPassword
            };

            var resultAuthUser = appAuthenticate.ValidanteAndCreateToken(authUser);

            Assert.IsTrue(resultAuthUser.Status, "Erro no result");
        }
Beispiel #2
0
 public LoginController(IAppAuthenticate appAuthenticate)
 {
     this.appAuthenticate = appAuthenticate;
 }
Beispiel #3
0
 public RegisterController(IAppCadastrar cadastrarApp, IAppAuthenticate authenticateApp)
 {
     this.cadastrarApp    = cadastrarApp;
     this.authenticateApp = authenticateApp;
 }