public void ResolvableDependentsRegistered() { var injectable = MockInjectableFactory.Create(); map.RegisterResolvableDependent(injectable); Assert.AreEqual(injectable, map.UnloadResolvableDependents()[0]); }
private void EvaluateInjectableProvider(Injectable injectable, IProvider provider) { dependencyMap.RegisterProvider(injectable.Type, injectable.Tag, provider); if (injectable.Attribute is UnityConvenienceAttribute) { dependencyMap.RegisterResolvableDependent(injectable); } else { throw new InjectionException(injectable.Object, "A member cannot be annotated both with [Inject] and [Provides]" + injectable.Type); } }