Esempio n. 1
0
        public async Task DeleteAsync_should_prefix_id_with_CacheKeyPrefix()
        {
            var distributedCache = new MockDistributedCache();

            var messageStore = new DistributedCacheAuthorizationParametersMessageStore(distributedCache, null);
            await messageStore.DeleteAsync("id");

            distributedCache.LastKeyRemoveRequest.Should().Be("DistributedCacheAuthorizationParametersMessageStore-id");
        }
 public DistributedCacheAuthorizationParametersMessageStoreTests()
 {
     _subject = new DistributedCacheAuthorizationParametersMessageStore(_mockCache, new DefaultHandleGenerationService());
 }