How can I unit test an AutoMapper Profile which makes use of IMappingAction?
I’m using AutoMapper and I need to inject a service in one of my Profile
classes.
AutoMapper Profile
classes are not designed to support dependency injection, in this case the documented pattern is to use IMappingAction
(see here for more details on this).