Codit / practical-api-guidelines

Practical guidelines for building & designing APIs with .NET.
MIT License
16 stars 5 forks source link

Automapper should be initialized only once during the lifetime of the app #99

Closed MassimoC closed 5 years ago

MassimoC commented 5 years ago

Automapper should be initialized only once during the lifetime of the application, so it should not be called in the ctor of a test.
You could create an xunit fixture that does this.

_Originally posted by @fgheysels