D
D
Denis Titusov2015-12-10 13:07:28
.NET
Denis Titusov, 2015-12-10 13:07:28

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

1 answer(s)
A
Artem Voronov, 2015-12-10
@newross

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 question

Ask a Question

731 491 924 answers to any question