public IEnumerable<IBindingWhenInNamedWithOrOnSyntax<object>> CreateBindings(Type type, IBindingRoot bindingRoot) { var selector = new BindableTypeSelector(); var @interface = selector.GetBindableInterfaces(type).SingleOrDefault(IsAnIReduceInterface); if (@interface == null) return Enumerable.Empty<IBindingWhenInNamedWithOrOnSyntax<object>>(); if (typeof(ByComposition<,>).IsAssignableFrom(type)) return Enumerable.Empty<IBindingWhenInNamedWithOrOnSyntax<object>>(); return new[] { bindingRoot.Bind(@interface).To(type) }; }
public BindableTypeSelectorTest() { this.testee = new BindableTypeSelector(); }
public BindableTypeSelectorTest() { this.testee = new BindableTypeSelector(); }