#1 2021-03-22 08:28:35

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 238
Website

Testing published MVC methods

Hi folks,

rather than just testing services included, I would love to test published MVC methods as well, ensuring correct parameter mapping, and so on.

Considering following minimized MVC app (see https://pastebin.com/xHEUK2vV ), how would my test case look? How would a pass a valid context object?

As much, as I love going through the mORMot tests, I did not find an answer to that :-(

Thanks,
Daniel

Last edited by sakura (2021-03-22 08:28:42)

Offline

#2 2021-03-22 16:15:36

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,548
Website

Re: Testing published MVC methods

I guess the easiest is not to call the method directly, but through a TRestClientUri.

Offline

Board footer

Powered by FluxBB