public async Task RefreshTokensAreDeleted() { Assert.NotEmpty(_thStore.GetAllAsync(Subject).Result); _ps.Invoke(); Assert.Equal( new string[] { }, (await _thStore.GetAllAsync(Subject)).Select(TestData.ToTestableString)); }
public async Task NotRemovedTokenIsReturned() { await _setup; await _store.RemoveAsync(RemovedKey); var result = (await _store.GetAllAsync(SubjectA)).ToArray(); Assert.Equal(1, result.Length); Assert.Equal( TestData.ToTestableString(_subjectATokens[1]), TestData.ToTestableString(result[0])); }