diff --git a/src/BBT.StrategyPattern.Tests/WithIocTest.cs b/src/BBT.StrategyPattern.Tests/WithIocTest.cs index bd3cf65..1d674a8 100644 --- a/src/BBT.StrategyPattern.Tests/WithIocTest.cs +++ b/src/BBT.StrategyPattern.Tests/WithIocTest.cs @@ -23,7 +23,7 @@ public void WorksWithIocNinject() // IoC registrations IKernel kernel = new StandardKernel(); - kernel.Bind>().ToMethod((con) => new NinjectStrategyLocator(kernel)); + kernel.Bind(typeof(IStrategyLocator<>)).To(typeof(NinjectStrategyLocator<>)); kernel.Bind().To(); kernel.Bind().To();