AutoMapper / AutoMapper.Extensions.Microsoft.DependencyInjection

MIT License
258 stars 79 forks source link

Add Extension Method Option To Assert Valid Configuration #129

Closed GravlLift closed 4 years ago

GravlLift commented 4 years ago

This PR adds an additional argument to the suite of AddAutoMapper methods allowing users to specify that configurations should be validated via AssertConfigurationIsValid on the first injection of IMapper.

lbargaoanu commented 4 years ago

You shouldn't call AssertConfigurationIsValid in your production code, you should write a test that does that. But if you want to do that, you can, of course, write your own thing.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.