Answer the question
In order to leave comments, you need to log in
How to write tests for RestSharp?
There is a small C# application that works with a REST service using the RestSharp library.
You need to write tests.
As far as I understand, the RestSharp library does not support mocking, and in my case it is highly undesirable to pull the real server during the tests.
What can be done in this case? What library for testing to take?
Answer the question
In order to leave comments, you need to log in
raise the service in the test and pull its methods. By analogy with ServiceStack,
either deploy a test server and work with it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question