Click here to Skip to main content
15,890,438 members
Articles / Programming Languages / C#

Mock ApiException on Refit

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
7 Sep 2021CPOL1 min read 12.1K   1  
Test Refit status code response 422 (or else) with mock and ApiException
How to use Mock and Refit to test that the application correctly reports the 422 status code and a string error (or anything else).

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Italy Italy
Alessandro is a software developer, graduated at politecnico of Milan with the passion for software programming, TDD and music.

Comments and Discussions