Example #1
0
        public async Task CreateRefreshToken_token_exists_in_store()
        {
            var client      = new Client();
            var accessToken = new Token();

            var handle = await _subject.CreateRefreshTokenAsync(new RefreshTokenCreationRequest { Subject = _user, AccessToken = accessToken, Client = client });

            (await _store.GetRefreshTokenAsync(handle)).Should().NotBeNull();
        }
Example #2
0
        public async Task CreateRefreshToken_token_exists_in_store()
        {
            var client      = new Client();
            var accessToken = new Token();

            var handle = await _subject.CreateRefreshTokenAsync(_user, accessToken, client);

            (await _store.GetRefreshTokenAsync(handle)).Should().NotBeNull();
        }