public void ProvidableDependentsRegistered() { var injectable = MockInjectableFactory.Create(); map.RegisterProvidableDependent(injectable); Assert.AreEqual(injectable, map.UnloadProvidableDependents()[0]); }
private void EvaluateInjectable(Injectable injectable) { if (injectable.Attribute is UnityConvenienceAttribute) { dependencyMap.RegisterResolvableDependent(injectable); } else if (injectable.Attribute is InjectAttribute) { dependencyMap.RegisterProvidableDependent(injectable); } }