public async Task success_get() { PersistedGrant persistedGrant = null; Should.NotThrow(() => { persistedGrant = GetAsync(_key).GetAwaiter().GetResult(); }); persistedGrant.ShouldNotBeNull(); (persistedGrant.Key == _key).ShouldBeTrue(); persistedGrant.Key.ShouldNotBeNullOrWhiteSpace(); persistedGrant.Key.ShouldBe(_key); persistedGrant.ClientId.ShouldBe(_clientId); }