c# - Unsure how I can mock an INancyModule.View method? -


i'm trying mock inancymodule.view method.

here's code (with intellisense)

enter image description here

if compile this, following error compile time error:

an expression may not contain dynamic operation

notice intellisense? it's asking dynamic model. i'm trying pass in, it's not working.

secondly, i'm trying return viewrenderer i'm not sure if setup correctly either.

so - how can create mock inancymodule.view property, please?

update

also, trying replace dynamic object has following designer error... (please open image in tab read error message).

enter image description here

unfortunately not possible (with v0.23.2) , require changes nancy in order achieve mocking of view mock returned rather implementation.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -