Introduce IPublishedContentType

This commit is contained in:
Stephan
2019-04-15 13:04:14 +02:00
parent 747a8cba2e
commit 34ad8dfb8d
38 changed files with 183 additions and 140 deletions

View File

@@ -243,7 +243,7 @@ namespace Umbraco.Tests.PublishedContent
return property;
}
public PublishedContentType ContentType { get; set; }
public IPublishedContentType ContentType { get; set; }
}
}
}

View File

@@ -930,7 +930,7 @@ namespace Umbraco.Tests.PublishedContent
class ImageWithLegendModel : PublishedElement
{
public ImageWithLegendModel(PublishedContentType contentType, Guid fragmentKey, Dictionary<string, object> values, bool previewing)
public ImageWithLegendModel(IPublishedContentType contentType, Guid fragmentKey, Dictionary<string, object> values, bool previewing)
: base(contentType, fragmentKey, values, previewing)
{ }

View File

@@ -137,17 +137,17 @@ namespace Umbraco.Tests.PublishedContent
return _content.Count > 0;
}
public override PublishedContentType GetContentType(int id)
public override IPublishedContentType GetContentType(int id)
{
throw new NotImplementedException();
}
public override PublishedContentType GetContentType(string alias)
public override IPublishedContentType GetContentType(string alias)
{
throw new NotImplementedException();
}
public override IEnumerable<IPublishedContent> GetByContentType(PublishedContentType contentType)
public override IEnumerable<IPublishedContent> GetByContentType(IPublishedContentType contentType)
{
throw new NotImplementedException();
}
@@ -157,7 +157,7 @@ namespace Umbraco.Tests.PublishedContent
{
#region Constructor
public SolidPublishedContent(PublishedContentType contentType)
public SolidPublishedContent(IPublishedContentType contentType)
{
// initialize boring stuff
TemplateId = 0;
@@ -211,7 +211,7 @@ namespace Umbraco.Tests.PublishedContent
#region ContentType
public PublishedContentType ContentType { get; private set; }
public IPublishedContentType ContentType { get; private set; }
#endregion