Open juristr opened 11 years ago
The main reason was to remove all dependencies so that it is easier to consume.
Typically I would use Autofac as my DI container but, again, thought it would be simpler for explanatory purposes to roll a simple one to remove the dependency.
I haven't used AutoMapper in anger so I probably need to take a better look at it. Question, how does AutoMapper cater for scenarios where you want to map something like Func<T1, T2, T3, TOut>
To see what I mean, take a look at the GetCustomerLoansOutputMapper class.
I'm not sure whether you didn't want to depend on any external libraries in your sample in order to keep it clean, but you could at least mention the usage of some popular ones in your description. For instance
Container.cs
)Especially AutoMapper makes mapping really easy and also takes away the burden of properly testing the mapping.