updated repository canHandle to prioritize the conditional checking
added and fully tested AutoMapper to repository