Replies: 1 comment 3 replies
-
While there is no replacement for You can implement
While the approach may seem a bit involved, but it should be straightforward if you are just replacing the responses on the HTTP request layer. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have the following code which is a gateway wrapper for my needs in my app.
https://github.com/IsraelHikingMap/Site/blob/2fe5d229322c46fbafb15f327ba74acbcbbf480d/IsraelHiking.DataAccess/WikimediaCommonGateway.cs
I'm trying to see if I can create some unit tests to this class.
So I need to replace the hard coded
new WikiClient
andnew WikiSite
and move those to a factory.But then I'd need some interface to return from that factory in order to be able to mock it easily.
Is there an interface I can use for
WikiSite
?Beta Was this translation helpful? Give feedback.
All reactions