Cleanup IPublishedContent
This commit is contained in:
@@ -96,8 +96,9 @@ namespace Umbraco.Tests.PublishedContent
|
||||
public void To_DataTable_With_Filter()
|
||||
{
|
||||
var doc = GetContent(true, 1);
|
||||
//change a doc type alias
|
||||
((TestPublishedContent) doc.Children.ElementAt(0)).DocumentTypeAlias = "DontMatch";
|
||||
//change a doc type alias
|
||||
var c = (TestPublishedContent) doc.Children.ElementAt(0);
|
||||
c.ContentType = new PublishedContentType(22, "DontMatch", PublishedItemType.Content, Enumerable.Empty<string>(), Enumerable.Empty<PublishedPropertyType>(), ContentVariation.InvariantNeutral);
|
||||
|
||||
var dt = doc.ChildrenAsTable(Current.Services, "Child");
|
||||
|
||||
@@ -133,8 +134,9 @@ namespace Umbraco.Tests.PublishedContent
|
||||
CreateDate = DateTime.Now,
|
||||
CreatorId = 1,
|
||||
CreatorName = "Shannon",
|
||||
DocumentTypeAlias = contentTypeAlias,
|
||||
DocumentTypeId = 2,
|
||||
// fixme what're we gonna do?
|
||||
//DocumentTypeAlias = contentTypeAlias,
|
||||
//DocumentTypeId = 2,
|
||||
Id = 3,
|
||||
SortOrder = 4,
|
||||
TemplateId = 5,
|
||||
@@ -175,6 +177,8 @@ namespace Umbraco.Tests.PublishedContent
|
||||
((Collection<IPublishedProperty>) d.Properties).Add(
|
||||
new RawValueProperty(factory.CreatePropertyType("property3", 1), d, "value" + (indexVals + 2)));
|
||||
}
|
||||
|
||||
d.ContentType = new PublishedContentType(22, contentTypeAlias, PublishedItemType.Content, Enumerable.Empty<string>(), Enumerable.Empty<PublishedPropertyType>(), ContentVariation.InvariantNeutral);
|
||||
return d;
|
||||
}
|
||||
|
||||
@@ -201,10 +205,9 @@ namespace Umbraco.Tests.PublishedContent
|
||||
public int TemplateId { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
public string Name { get; set; }
|
||||
public IReadOnlyDictionary<string, PublishedCultureName> CultureNames => throw new NotSupportedException();
|
||||
public PublishedCultureInfos GetCulture(string culture = ".") => throw new NotSupportedException();
|
||||
public IReadOnlyDictionary<string, PublishedCultureInfos> Cultures => throw new NotSupportedException();
|
||||
public string UrlName { get; set; }
|
||||
public string DocumentTypeAlias { get; set; }
|
||||
public int DocumentTypeId { get; set; }
|
||||
public string WriterName { get; set; }
|
||||
public string CreatorName { get; set; }
|
||||
public int WriterId { get; set; }
|
||||
@@ -240,10 +243,7 @@ namespace Umbraco.Tests.PublishedContent
|
||||
return property;
|
||||
}
|
||||
|
||||
public PublishedContentType ContentType
|
||||
{
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
public PublishedContentType ContentType { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user