Try our conversational search powered by Generative AI!

How to setup a mock IContentRepository to return a block on Get<IContent>?

Vote:
 

Has anyone here set up an IContentRepository to return a block when calling Get? I would really like to see an example of how this can be done!

Since only shared blocks inherit IContent I guess what I wonder is how to mock a shared block :)

#160761
Oct 05, 2016 14:15
Vote:
 

Maybe there's something in here: https://github.com/DavidVujic/EPiServer-FakeMaker/

Did you already check it out?

#162168
Oct 11, 2016 23:09
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.