示例#1
0
        public void Should_map_ok()
        {
            var supplier = new Supplier();

            supplier.Contact = new Contact {
                Supplier = supplier
            };
            Mapper.Map <SupplierViewModel>(supplier);
            ConfigProvider.GetAllTypeMaps().All(tm => tm.PreserveReferences).ShouldBeFalse();
        }