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