public SubscribingCache(ICacheAside cache, ICacheSubscriber cacheSubscriber)
        {
            _knownTypes      = new ConcurrentDictionary <string, Type>();
            _cache           = cache;
            _cacheSubscriber = cacheSubscriber;

            _cacheSubscriber.CacheUpdate += OnCacheUpdate;
        }
 public SubscribingCacheTests()
 {
     _decoratedCache   = A.Fake <ICacheAside>();
     _subscriber       = A.Fake <ICacheSubscriber>();
     _subscribingCache = new SubscribingCache(_decoratedCache, _subscriber);
 }
 public SubscribingCacheTests()
 {
     _decoratedCache = A.Fake<ICacheAside>();
     _subscriber = A.Fake<ICacheSubscriber>();
     _subscribingCache = new SubscribingCache(_decoratedCache, _subscriber);
 }