Replies: 1 comment 9 replies
-
That test shows the initial intent. I guess it's debatable. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we have issues preventing AutoMapper to use private / internal constructors. Consider the following simplified example:
Source/destination types
Mapping configuration
Version: 10.1.1
Expected behavior
mapper.Map<Destination>(new Source())
should throw anAutoMapperConfigurationExpression
(No available constructor) exception.Actual behavior
config.AssertConfigurationIsValid()
throws as expected. This is what got tested in the unit tests.mapper.Map<Destination>(new Source())
does still uses any ctor it finds.Steps to reproduce
Beta Was this translation helpful? Give feedback.
All reactions