Drives the activation (injection, etc.) of an instance.
Inheritance: Ninject.Components.NinjectComponent, IPipeline
コード例 #1
0
ファイル: PipelineTests.cs プロジェクト: schambers/ninject
 public PipelineContext()
 {
     strategyMocks.Add(new Mock<IActivationStrategy>());
     strategyMocks.Add(new Mock<IActivationStrategy>());
     strategyMocks.Add(new Mock<IActivationStrategy>());
     pipeline = new Pipeline(strategyMocks.Select(mock => mock.Object));
 }
コード例 #2
0
ファイル: PipelineTests.cs プロジェクト: Qiredev/ninject
 public PipelineContext()
 {
     this.StrategyMocks.Add(new Mock<IActivationStrategy>());
     this.StrategyMocks.Add(new Mock<IActivationStrategy>());
     this.StrategyMocks.Add(new Mock<IActivationStrategy>());
     this.ActivationCacheMock = new Mock<IActivationCache>();
     this.Pipeline = new Pipeline(this.StrategyMocks.Select(mock => mock.Object), this.ActivationCacheMock.Object);
 }