Exemplo n.º 1
0
        public AutoMappingTester(AutoPersistenceModel mapper)
            : base(mapper)
        {
            mapper.CompileMappings();

            ForMapping((ClassMap <T>)null);
        }
        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();
        }