5 Comments

So, there is a third way of testing your AstroService which would not require you to mock anything at class level yet make your tests independent of network or availability of the web service your code talks to - mock out the http responses of the web service. There are many libraries that can do it but my favourite one is WireMock. Hopefully it’s cause it’s good and not because I personally know the creator… 🙂

Expand full comment