U4-11492 - Clean Umbraco.Web.UmbracoHelper [v8]

Created by Andy Thompson 01 Jul 2018, 09:31:31 Updated by Sebastiaan Janssen 12 Jul 2018, 11:13:51

Tags: PR

Relates to: U4-11509

Relates to: U4-11429

Note: This covers the v8 version. The v7 version is here [http://issues.umbraco.org/issue/U4-11429]

This replicates the changes made for v7 into the v8 branch. Refactoring the following methods plus unit tests to go with them.

{{ class Umbraco.Web.UmbracoHelper }}

  • {{ bool ConvertIdObjectToGuid(object id, out Guid guidId) }}
  • {{ bool ConvertIdObjectToUdi(object id, out Udi guidId) }}
  • {{ bool ConvertIdObjectToInt(object id, out int intId) }}

PR: https://github.com/umbraco/Umbraco-CMS/pull/2757

Comments

Priority: Minor

Type: Task

State: Fixed

Assignee:

Difficulty: Easy

Category: Architecture

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 8.0.0

Due in version: 8.0.0

Sprint:

Story Points:

Cycle: