Changing rolesByPerson in RoleAPIMocker
Summary
Currently The rolesByPerson
map in the RoleApiMocker
class is expecting key-value pairs consisting of the ID of the user and a RoleDetailsDTO
instance that contains the information for a specific role. This causes an "impedance mismatch" as pApi.getRolesForPerson()
is expected to return a list of RoleEditionDetailsDTO
instead of RoleDetailsDTO
.
Changes
-
Use the mapper
to map the DTO into the other DTO
Edited by Henry Page