Exemple #1
0
        public void GetCurrentRefreshToken_RefreshTokenDoesNotExist_ThrowUnauthorizedException()
        {
            _repo.Setup(x => x.GetRefreshToken("invalidToken", default))
            .ReturnsAsync((RefreshToken)null);

            Assert.That(() => _sut.GetCurrentRefreshToken("invalidToken", default),
                        Throws.Exception.TypeOf <UnauthorizedException>());
        }