Hi All,
Complements of the season to all those celebrating.
I'm using umbraco 15 and busy with some unit testing. I would like to mock IPublisedContentQuery so that it returns a value my method needs.
I'm using Nunit and NSubstitute.
When I try to mock IPulbishedContentQuery and try to get a value using .Value
("propertyName") i get the following error.
System.TypeInitializationException: 'The type initializer for 'Umbraco.Extensions.FriendlyPublishedContentExtensions' threw an exception.'
Can someone please shed some light on how to properly mock IPublishedContentQuery please?
Thank you in advanced.