Example #1
0
 public CachingInterceptor(ObjectCache cache, ICacheKeyGenerationService cacheKeyGenerationService)
     : base(cache, cacheKeyGenerationService)
 {
 }
Example #2
0
 public void Initialize()
 {
     Cache = A.Fake<ObjectCache>();
     CacheKeyGenerationService = A.Fake<ICacheKeyGenerationService>();
     Interceptor = new NinjectCachingInterceptor(Cache, CacheKeyGenerationService);
 }
Example #3
0
 public CachingInterceptor(ObjectCache cache, ICacheKeyGenerationService cacheKeyGenerationService)
     : base(cache, cacheKeyGenerationService)
 {
 }
Example #4
0
 protected BaseCachingInterceptor(ObjectCache cache, ICacheKeyGenerationService cacheKeyGenerationService)
 {
     _cache = cache;
     _cacheKeyGenerationService = cacheKeyGenerationService;
 }
Example #5
0
 protected BaseCachingInterceptor(ObjectCache cache, ICacheKeyGenerationService cacheKeyGenerationService)
 {
     _cache = cache;
     _cacheKeyGenerationService = cacheKeyGenerationService;
 }
Example #6
0
 public void Initialize()
 {
     Cache = A.Fake <ObjectCache>();
     CacheKeyGenerationService = A.Fake <ICacheKeyGenerationService>();
     Interceptor = new CachingInterceptor(Cache, CacheKeyGenerationService);
 }