Refactor IPublishedContent.Children()
This commit is contained in:
@@ -183,7 +183,7 @@ namespace Umbraco.Tests.LegacyXmlPublishedCache
|
||||
|
||||
public override IEnumerable<IPublishedProperty> Properties => _properties;
|
||||
|
||||
public override IEnumerable<IPublishedContent> Children => _getChildren.Value;
|
||||
public override IEnumerable<IPublishedContent> Children(string culture = null) => _getChildren.Value;
|
||||
|
||||
public override IPublishedProperty GetProperty(string alias)
|
||||
{
|
||||
|
||||
@@ -75,13 +75,10 @@ namespace Umbraco.Tests.LegacyXmlPublishedCache
|
||||
private bool _isDraft;
|
||||
|
||||
|
||||
public override IEnumerable<IPublishedContent> Children
|
||||
public override IEnumerable<IPublishedContent> Children(string culture = null)
|
||||
{
|
||||
get
|
||||
{
|
||||
EnsureNodeInitialized(andChildren: true);
|
||||
return _children;
|
||||
}
|
||||
EnsureNodeInitialized(andChildren: true);
|
||||
return _children;
|
||||
}
|
||||
|
||||
public override IPublishedProperty GetProperty(string alias)
|
||||
|
||||
Reference in New Issue
Block a user