public CachingInterceptor(ObjectCache cache, ICacheKeyGenerationService cacheKeyGenerationService) : base(cache, cacheKeyGenerationService) { }
public void Initialize() { Cache = A.Fake<ObjectCache>(); CacheKeyGenerationService = A.Fake<ICacheKeyGenerationService>(); Interceptor = new NinjectCachingInterceptor(Cache, CacheKeyGenerationService); }
protected BaseCachingInterceptor(ObjectCache cache, ICacheKeyGenerationService cacheKeyGenerationService) { _cache = cache; _cacheKeyGenerationService = cacheKeyGenerationService; }
public void Initialize() { Cache = A.Fake <ObjectCache>(); CacheKeyGenerationService = A.Fake <ICacheKeyGenerationService>(); Interceptor = new CachingInterceptor(Cache, CacheKeyGenerationService); }