public void should_be_able_to_build_mapping()
        {
            var source = new StubTypeSource(typeof(IncomingDocument), typeof(DocumentNumber));

            var persistenceModel = AutoMap.Source(source, new AutomappingConfiguration())
                                   .Override <IncomingDocument>(m => m.Component(x => x.IncomingNumber)
                                                                .ColumnPrefix("INCOMING_"));

            Assert.DoesNotThrow(() => persistenceModel.BuildMappings());
        }
        public void should_be_able_to_build_mapping()
        {
            var source = new StubTypeSource(typeof(IncomingDocument), typeof(DocumentNumber));

            AutoPersistenceModel persistenceModel = AutoMap.Source(source, new AutomappingConfiguration())
                .Override<IncomingDocument>(m => m.Component(x => x.IncomingNumber)
                    .ColumnPrefix("INCOMING_"));

            Assert.DoesNotThrow(() => persistenceModel.BuildMappings());
        }
 public void CreateConfigurations()
 {
     source     = new StubTypeSource(typeof(Customer), typeof(Address));
     addressCfg = new TestConfiguration_AddressComponent();
 }