public void VerifyPassword_ShouldReturnTrue_WhenPasswordsAreMaching()
        {
            var saltAndHash = _passwordHashService.HashWithSaltPassword(Password);
            var match       = _passwordHashService.VerifyPassword(Password, saltAndHash);

            Assert.True(match);
        }
        public async Task <bool> HandleLoginRequest(ClientRequest request)
        {
            var client = await _clientRespository.GetByName(request.ClientId);

            if (client == null)
            {
                return(false);
            }

            var compareResult = _passwordHashService.VerifyPassword(request.ClientSecret, client.ClientSecret);

            return(compareResult);
        }