Timeline for How to mock an ImageField in Sitecore using nSubstitute and xUnit
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 12, 2022 at 11:53 | vote | accept | Dean OBrien | ||
Jan 12, 2022 at 11:49 | comment | added | Dean OBrien | Thanks Serhii, that change has indeed allowed me to progress. I will update my question to show the adjusted code. Marking as accepted answer now. I have now discovered two further issues: [1] The static call to HashingUtils.ProtectAssetUrl() is throwing an exception => how would you normally deal with such calls? Would I move that into view or view model? [2] my mocking of BaseMediaManager doesnt return any data => I will raise a follow up question for this | |
Jan 12, 2022 at 8:52 | history | answered | Serhii Shushliapin | CC BY-SA 4.0 |