PROBLEM:
I am pulling in third party data from an XML feed. I need to take that data and convert it into entities.
POINTS FOR DISCUSSION:
My question is how to use Services and Repositories in this case. So, for example, I could create a Service that pulls the data from the feed, and then inject that service into the Repository which could then use it to pull the data and convert it into entities. But I'm not sure if that is the right approach?
The repository could have the logic to pull in the data and then map it to entities, but I don't think the repository should be handling that logic? Or should it?
From a DDD separation of concerns perspective, how should this best be architected?