From aa09005a3afd6d22dc8b7b28f129664cbda45194 Mon Sep 17 00:00:00 2001 From: Stefan Lindegger Date: Wed, 20 Nov 2019 13:36:40 +0100 Subject: [PATCH] (GH-17) WithIocTest case improved. --- src/BBT.StrategyPattern.Tests/WithIocTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();