mercredi 1 février 2017

Hide third-party library details c#

I am using third-party libraries (nuget packages) in my C# web application. I want to hide their details from client code so that I can swap these external dependencies without changing client code. I looked at Adapter and Design described here. But still not sure which one I need.

Also, looks like if I go with Facade then unit testing will be a challenge. As Facade holds static instances of dependencies.

Aucun commentaire:

Enregistrer un commentaire