kenticocloud unit test

innovix solutions asked on August 14, 2019 05:56

Hi All,

How can we prepare fake data for cloud api data in kentico 12 MVC development in UnitTest method? Currently we are using real data from cloud for unit test. Please advise.

Recent Answers


David te Kloese answered on August 14, 2019 12:46

Hi,

Would this work for you: github.com/.../Faking-responses

... First, you need to fake the HttpMessageHandler class. The method of doing so is well described at StackOverflow. We recommend using RichardSzalay.MockHttp NuGet package...

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.