public void Initialize() { Cache = A.Fake<ObjectCache>(); CacheKeyGenerationService = A.Fake<ICacheKeyGenerationService>(); Invocation = A.Fake<IInvocation>(); ProxyRequest = A.Fake<IProxyRequest>(); Target = new TestModelDefinition(); A.CallTo(() => Invocation.Request).Returns(ProxyRequest); A.CallTo(() => ProxyRequest.Target).Returns(Target); Interceptor = new NinjectCachingInterceptor(Cache, CacheKeyGenerationService); }
public void Initialize() { Cache = A.Fake<ObjectCache>(); CacheKeyGenerationService = A.Fake<ICacheKeyGenerationService>(); Interceptor = new NinjectCachingInterceptor(Cache, CacheKeyGenerationService); }