public IBinder[] Create() { var resolverFactory = new DefaultResolverFactory(activate); var destinationPropsBinding = new DestinationPropertyTypeBinder(resolverFactory){Logger=Logger}; var listPropBinding = new ListPropertyBinder(resolverFactory){Logger=Logger}; var selfBinding = new SelfBinder(); return new IBinder[]{destinationPropsBinding,listPropBinding,selfBinding}; }
public void it_should_determine_candidate_properties() { var modelConfig = new DestinationConfiguration(typeof(DestinationWithComponentArray)); modelConfig.From(typeof (SourceWithComponentArray)); var cfg = configFactory.CreateBindableConfiguration(modelConfig.TakeSnapshot()); var binder = new ListPropertyBinder(null); var candidates = binder.GetCandidateDestinationProperties(cfg); candidates.should_have_item_matching(its => its.PropertyType == typeof (IntegerDest[])); }
public IBinder[] Create() { var resolverFactory = new DefaultResolverFactory(activate); var destinationPropsBinding = new DestinationPropertyTypeBinder(resolverFactory) { Logger = Logger }; var listPropBinding = new ListPropertyBinder(resolverFactory) { Logger = Logger }; var selfBinding = new SelfBinder(); return(new IBinder[] { destinationPropsBinding, listPropBinding, selfBinding }); }