Skip to content

Commit

Permalink
(bbtsoftwareGH-17) WithIocTest case improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Lindegger committed Nov 20, 2019
1 parent b953de9 commit aa09005
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 aa09005

Please sign in to comment.