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.
Asked
Active
Viewed 94 times
0
-
The idea is to use resolvers, such as MapFrom or ResolveUsing, for the properties you set in AfterMap. – Lucian Bargaoanu Oct 09 '17 at 07:47
-
1could you give an example ? so i can get a better context – Sharthak Ghosh Oct 09 '17 at 08:42