public void MethodInjectAll_Scoped_InjectsCorrectDependencies() { //ARRANGE var container = new Container(builder => { builder.Register <ITestService10, TestService10>(); builder.LateInject <MethodInjectionClass>(c => c .UseMethod(nameof(MethodInjectionClass.Inject))); }); var instances = new List <MethodInjectionClass>(); for (var i = 0; i < 10; i++) { instances.Add(new MethodInjectionClass()); } //ACT Scoped scope = container.BeginScope(); scope.LateInjectAll(instances); //ASSERT foreach (MethodInjectionClass instance in instances) { Assert.IsType <TestService10>(instance.TestService10); } }