How do I remove AfterMap from Automapper Profiles

109 Views Asked by At

I have a profile class where I am using AfterMap() method. My profile class has two constructor dependencies. Problem is that while I am unit testing I am mocking these dependencies but also I require the actual objects when I am doing integration testing. Since im using xUnit2, everything runs in parallel, so I have no control. So that is why I want to remove all the code from aftermap. Can someone tell me the approach for this ? I am using structuremap as my IOC container.

0

There are 0 best solutions below