private void Model <T>(Func <Member, bool> convention) { model = new PrivateAutoPersistenceModel() .Setup(conventions => conventions.FindMappablePrivateProperties = convention); model.AddTypeSource(new StubTypeSource(typeof(T))); model.CompileMappings(); model.BuildMappings(); }