U4-7087 - Make PageId private field on RedirectToUmbracoPageResult available for unit testing

Created by Damiaan Peeters 10 Sep 2015, 16:01:37 Updated by Damiaan Peeters 11 Sep 2015, 07:08:29

I am writing some unittests. My controller is returning an RedirectToUmbracoPageResult.

I would like to verify to verify the Id of the Contentpage being returned. But due to unavailability of the UmbracoContext (or HttpContext), all public properties (PublishedContent and Url) are returning exceptions.

There is however an internal field containing the ID. To make my unittests succesful, I would like to see this field being exposes to the world (by a getter).


Damiaan Peeters 11 Sep 2015, 07:08:29

for reference: https://github.com/umbraco/Umbraco-CMS/pull/788

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Very Easy


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions:

Due in version: 7.3.0


Story Points: