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(); }
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(); }