Added more extension methods to our strongly typed IPublishedContent object and IEnumerable<IPublishedContent> to match all of the available methods

that are on the DynamicPublishedContent object. Added more unit tests for all of these classes.
Moved some of the Dynamic objects into the web project which simplifies things quite a bit as some of these classes require access to the biz logic layer.
Now we have intellisense for all of the nice magical methods that were on DynamicPublishedContent on our strongly typed object!
This commit is contained in:
Shannon Deminick
2012-10-04 03:26:56 +05:00
parent c0102f1c71
commit 54e5140d6a
37 changed files with 1648 additions and 1179 deletions

View File

@@ -5,6 +5,7 @@ using System.Xml;
using Examine;
using Umbraco.Core.Dynamics;
using Umbraco.Core.Models;
using Umbraco.Web.Models;
namespace Umbraco.Web
{
@@ -32,7 +33,7 @@ namespace Umbraco.Web
if (doc == null) continue; //skip if this doesn't exist in the cache
doc.Properties.Add(
new PropertyResult("examineScore", result.Score.ToString(), Guid.Empty, PropertyResultType.CustomProperty));
var dynamicDoc = new DynamicPublishedContentBase(doc);
var dynamicDoc = new DynamicPublishedContent(doc);
list.Add(dynamicDoc);
}
return list;