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?
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
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
is working on a reply...