public void Execute_ClassWithNamedAnnotatedProperties_ReturnsServiceNameFromAttribute() { var selector = new AnnotatedPropertyDependencySelector(new PropertySelector()); PropertyDependency propertyDependency = selector.Execute(typeof(FooWithNamedAnnotatedProperyDependency)).FirstOrDefault(); Assert.AreEqual("AnotherBar", propertyDependency.ServiceName); }
public void Execute_ClassWithAnnotatedProperties_ReturnsAnnotatedProperties() { var selector = new AnnotatedPropertyDependencySelector(new PropertySelector()); var result = selector.Execute(typeof(FooWithAnnotatedProperyDependency)); Assert.AreEqual(1, result.Count()); }