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"); }
public LoginController(IAppAuthenticate appAuthenticate) { this.appAuthenticate = appAuthenticate; }
public RegisterController(IAppCadastrar cadastrarApp, IAppAuthenticate authenticateApp) { this.cadastrarApp = cadastrarApp; this.authenticateApp = authenticateApp; }