Port/Adapter/Simulator: read-only and write-only dependencies
Posted by: Eric Gunnersons C# Compendium,
on 24 Feb 2016 |
View original | Bookmarked: 0 time(s)
When dealing with many external dependencies, the Port/Adapter/Simulator pattern works great. But what about dependencies that are read-only – such as consuming an information feed from another system – or write-only – such as sending a notification to a user? Can we use P/A/S in those scenarios? The answer is a qualified “yes” – we...