Tracks instances for re-use in certain scopes.
Inheritance: Ninject.Components.NinjectComponent, ICache
Esempio n. 1
0
 public CacheContext()
 {
     this.cachePrunerMock = new Mock<ICachePruner>();
     this.bindingConfigurationMock = new Mock<IBindingConfiguration>();
     this.pipelineMock = new Mock<IPipeline>();
     this.cache = new Cache(this.pipelineMock.Object, this.cachePrunerMock.Object);
 }
Esempio n. 2
0
 public CacheContext()
 {
     activatorMock = new Mock<IPipeline>();
     cachePrunerMock = new Mock<ICachePruner>();
     bindingMock = new Mock<IBinding>();
     cache = new Cache(activatorMock.Object, cachePrunerMock.Object);
 }
Esempio n. 3
0
 public void SetUp()
 {
     this.cachePrunerMock = new Mock<ICachePruner>();
     this.bindingMock = new Mock<IBinding>();
     this.pipelineMock = new Mock<IPipeline>();
     this.cache = new Cache(this.pipelineMock.Object, this.cachePrunerMock.Object);
 }
Esempio n. 4
0
 public void SetUp()
 {
     this.cachePrunerMock = new Mock<ICachePruner>();
     this.bindingConfigurationMock = new Mock<IBindingConfiguration>();
     this.cache = new Cache(new PipelineMock(), this.cachePrunerMock.Object);
 }