public void SaveRefeshToken_ValueGetSaved()
        {
            TokenRepository repo = new TokenRepository(mockStore.Object);

            repo.SaveRefreshToken(new RefreshToken());
            mockStore.Verify(m => m.SaveToken(It.IsAny <IToken>()), Times.Once);
        }
        public void GetRefreshToken_ValueReturned()
        {
            string       client_id    = "123";
            RefreshToken refreshToken = new RefreshToken {
                Id = 1, Client_Id = client_id
            };

            mockStore.Setup(m => m.GetToken(TokenType.RefreshToken, client_id)).Returns(refreshToken);

            TokenRepository repo        = new TokenRepository(mockStore.Object);
            var             actualValue = repo.GetRefreshToken(client_id);

            Assert.AreEqual(actualValue, refreshToken);
        }