Adds template repository tests, updates template repo business logic to be able to delete the whole template tree, updates some script repo tests too.

This commit is contained in:
Shannon
2013-11-12 22:28:43 +11:00
parent 6bab9500c1
commit 2129ac8241
5 changed files with 337 additions and 13 deletions

View File

@@ -30,14 +30,6 @@ namespace Umbraco.Core.Models
//private static readonly PropertyInfo MasterTemplateIdSelector = ExpressionHelper.GetPropertyInfo<Template, int>(x => x.MasterTemplateId);
private static readonly PropertyInfo MasterTemplateAliasSelector = ExpressionHelper.GetPropertyInfo<Template, string>(x => x.MasterTemplateAlias);
internal Template(string path)
: base(path)
{
base.Path = path;
ParentId = -1;
}
public Template(string path, string name, string alias)
: base(path)
{