Skip to content

Commit

Permalink
Merge pull request #18 from stefan-lindegger/feature/GH-17
Browse files Browse the repository at this point in the history
(GH-17) WithIocTest case improved.
  • Loading branch information
stefan-lindegger authored Nov 20, 2019
2 parents b953de9 + aa09005 commit 4ffa4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BBT.StrategyPattern.Tests/WithIocTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void WorksWithIocNinject()
// IoC registrations
IKernel kernel = new StandardKernel();

kernel.Bind<IStrategyLocator<IOperatorStrategy>>().ToMethod((con) => new NinjectStrategyLocator<IOperatorStrategy>(kernel));
kernel.Bind(typeof(IStrategyLocator<>)).To(typeof(NinjectStrategyLocator<>));

kernel.Bind<IOperatorStrategy>().To<AdditionStrategy>();
kernel.Bind<IOperatorStrategy>().To<SubstractionStrategy>();
Expand Down

0 comments on commit 4ffa4ad

Please sign in to comment.