public void Execute_ClassWithNamedAnnotatedProperties_ReturnsServiceNameFromAttribute()
        {
            var selector = new AnnotatedConstructorDependencySelector();

            ConstructorDependency constructorDependency = selector.Execute(typeof(FooWithNamedAnnotatedDependency).GetConstructors().First()).FirstOrDefault();

            Assert.AreEqual("AnotherBar", constructorDependency.ServiceName);
        }
 public ComponentWithBothConstructorAndSetterInjection(ConstructorDependency constructorDependency)
 {
     ConstructorDependency = constructorDependency;
 }
Ejemplo n.º 3
0
 public ComponentWithBothConstructorAndSetterInjection(ConstructorDependency constructorDependency)
 {
     ConstructorDependency = constructorDependency;
 }