Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damiaan 442 posts 1301 karma points MVP 6x c-trib
    Sep 09, 2015 @ 12:10
    Damiaan
    0

    unit test to validate the ID returned by RedirectToUmbracoPageResult

    Hi Guys

    I am writing some unittests. My controller is retruning an RedirectToUmbracoPageResult. I would like to verify to verify the Id of the Contentpage being returned. But due to unavailability of the UmbracoContext, I don't have any public properties (publishedContent and Url).
    There is however an internal field containing the ID.

    Should I create an issue on youtrack to get the field exposed by (eg) a Getter (screenshot below)? Or has someone a better solution?

    Kind regards

    screenshot while debugging unittest with RedirectToUmbracoPageResult

  • Damiaan 442 posts 1301 karma points MVP 6x c-trib
    Sep 11, 2015 @ 07:08
    Damiaan
    0

    Just as a follow up: I did create an issue: http://issues.umbraco.org/issue/U4-7087 ... and a pull request https://github.com/umbraco/Umbraco-CMS/pull/788

Please Sign in or register to post replies

Write your reply to:

Draft