public void Build_IgnoreProperty_Success() { var bindingConfig = new BindingConfig(); bindingConfig.IgnoreField("Id"); var mappingMemberBuilder = new MappingMemberBuilder(new MappingBuilderConfigStub(bindingConfig)); List<MappingMember> members = mappingMemberBuilder.Build(new TypePair(typeof(Source1), typeof(Target1))); Assert.Equal(1, members.Count); }
public Mapper Build(TypePair typePair, BindingConfig bindingConfig) { _bindingConfigs[typePair] = bindingConfig; return Build(typePair); }
public MappingBuilderConfigStub(BindingConfig bindingConfig) { _bindingConfig = bindingConfig.ToOption(); }