public ModelsExpression IgnoreProperties(Func <PropertyInfo, bool> filter) { var binder = new IgnorePropertyBinder(filter); _registry.AddService <IPropertyBinder>(binder); return(this); }
public ModelsExpression IgnoreProperties(Func <PropertyInfo, bool> filter) { var binder = new IgnorePropertyBinder(filter); return(add(x => x.AddService <IPropertyBinder>(binder))); }
public void SetUp() { _binder = new IgnorePropertyBinder(info => info.Name == "SomeProperty"); _context = MockRepository.GenerateMock <IBindingContext>(); }