Tracks instances for re-use in certain scopes.
Inheritance: Ninject.Components.NinjectComponent, ICache
Exemple #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);
 }
Exemple #2
0
 public CacheContext()
 {
     activatorMock = new Mock<IPipeline>();
     cachePrunerMock = new Mock<ICachePruner>();
     bindingMock = new Mock<IBinding>();
     cache = new Cache(activatorMock.Object, cachePrunerMock.Object);
 }
Exemple #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);
 }
 public void SetUp()
 {
     this.cachePrunerMock = new Mock<ICachePruner>();
     this.bindingConfigurationMock = new Mock<IBindingConfiguration>();
     this.cache = new Cache(new PipelineMock(), this.cachePrunerMock.Object);
 }