示例#1
0
        public ModelsExpression IgnoreProperties(Func <PropertyInfo, bool> filter)
        {
            var binder = new IgnorePropertyBinder(filter);

            _registry.AddService <IPropertyBinder>(binder);

            return(this);
        }
示例#2
0
        public ModelsExpression IgnoreProperties(Func <PropertyInfo, bool> filter)
        {
            var binder = new IgnorePropertyBinder(filter);

            return(add(x => x.AddService <IPropertyBinder>(binder)));
        }
示例#3
0
 public void SetUp()
 {
     _binder  = new IgnorePropertyBinder(info => info.Name == "SomeProperty");
     _context = MockRepository.GenerateMock <IBindingContext>();
 }