public void TestSetup()
 {
     var testSetup = new NhibernateTestSetupHelper();
     _nhSessionHelper = new NhSessionHelper(testSetup.SessionForTest, testSetup.FakeFrameworkContext);
     _rdbmsTypeMapper = new RdbmsModelMapper(_nhSessionHelper, testSetup.FakeFrameworkContext);
     _rdbmsTypeMapper.ConfigureMappings();
 }
        private MappingEngineCollection GetTypeMappers()
        {
            var webmModelMapper = new RdbmsModelMapper(null, null);
            var binders = new List<Lazy<AbstractMappingEngine, TypeMapperMetadata>>();
            var metadata = new TypeMapperMetadata(true);
            var bind = new Lazy<AbstractMappingEngine, TypeMapperMetadata>(() => webmModelMapper, metadata);
            binders.Add(bind);
            /*
            binders.Add(new Lazy<AbstractMappingEngine, TypeMapperMetadata>(() => new ManualMapperv2(new NhLookupHelper(entityRepositoryFactory), providerMetadata),
                                                                            metadata));
            */

            /*
            MapResolverContext resolverContext = new MapResolverContext();
            var cmsModelMapper = new RenderTypesModelMapper(resolverContext);
            */

            var typeMappers = new MappingEngineCollection(binders);
            typeMappers.Configure();
            return typeMappers;
        }