Secures all ITasks, adds unit tests to ensure they are all secured and the correct app is assigned.

This commit is contained in:
Shannon Deminick
2013-04-08 23:11:47 +06:00
parent fe01bd1f29
commit cb19fe3902
46 changed files with 858 additions and 1229 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Xml;
namespace Umbraco.Core
@@ -9,6 +10,10 @@ namespace Umbraco.Core
/// </summary>
internal static class XmlExtensions
{
public static bool HasAttribute(this XmlAttributeCollection attributes, string attributeName)
{
return attributes.Cast<XmlAttribute>().Any(x => x.Name == attributeName);
}
public static T AttributeValue<T>(this XmlNode xml, string attributeName)
{