public async Task GetListBySubjectIdAsync()
        {
            var persistedGrants = await _persistentGrantRepository.GetListBySubjectIdAsync("PersistedGrantSubjectId1");

            persistedGrants.ShouldNotBeEmpty();
            persistedGrants.ShouldContain(x => x.Key == "PersistedGrantKey1");
        }
        public virtual async Task <IEnumerable <IdentityServer4.Models.PersistedGrant> > GetAllAsync(string subjectId)
        {
            var persistedGrants = await _persistentGrantRepository.GetListBySubjectIdAsync(subjectId);

            return(persistedGrants.Select(x => _objectMapper.Map <PersistedGrant, IdentityServer4.Models.PersistedGrant>(x)));
        }
        public async Task <List <PersistedGrantDto> > GetListBySubjectIdAsync(string key)
        {
            List <PersistedGrant> items = await PersistentGrantRepository.GetListBySubjectIdAsync(key);

            return(ObjectMapper.Map <List <PersistedGrant>, List <PersistedGrantDto> >(items));
        }