c# - Unsure how I can mock an INancyModule.View method? -
i'm trying mock inancymodule.view
method.
here's code (with intellisense)
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).
unfortunately not possible (with v0.23.2) , require changes nancy in order achieve mocking of view mock returned rather implementation.
Comments
Post a Comment