renamed DynamicDocumentList to DynamicPublishedContentList
simplified some of the DynamicPublishedContent methods to accept Func<IPublishedContent> instead of Func<DynamicPublishedContent>, made the IsHelper method private as this shouldn't be exposed. renamed other objects starting with DynamicDocument to DynamicPublishedContent
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Umbraco.Tests.DynamicDocument
|
||||
{
|
||||
base.Initialize();
|
||||
//need to specify a different callback for testing
|
||||
Umbraco.Web.DocumentExtensions.GetPropertyAliasesAndNames = s =>
|
||||
Umbraco.Web.PublishedContentExtensions.GetPropertyAliasesAndNames = s =>
|
||||
{
|
||||
var userFields = new Dictionary<string, string>()
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace Umbraco.Tests.DynamicDocument
|
||||
public override void TearDown()
|
||||
{
|
||||
base.TearDown();
|
||||
Umbraco.Web.DocumentExtensions.GetPropertyAliasesAndNames = null;
|
||||
Umbraco.Web.PublishedContentExtensions.GetPropertyAliasesAndNames = null;
|
||||
UmbracoContext.Current = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,14 +17,14 @@ namespace Umbraco.Tests.DynamicDocument
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
DynamicDocumentDataSourceResolver.Current = new DynamicDocumentDataSourceResolver(
|
||||
new TestDynamicDocumentDataSource());
|
||||
DynamicPublishedContentDataSourceResolver.Current = new DynamicPublishedContentDataSourceResolver(
|
||||
new TestDynamicPublishedContentDataSource());
|
||||
}
|
||||
|
||||
public override void TearDown()
|
||||
{
|
||||
base.TearDown();
|
||||
DynamicDocumentDataSourceResolver.Reset();
|
||||
DynamicPublishedContentDataSourceResolver.Reset();
|
||||
}
|
||||
|
||||
protected override bool RequiresDbSetup
|
||||
@@ -32,7 +32,7 @@ namespace Umbraco.Tests.DynamicDocument
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
private class TestDynamicDocumentDataSource : IDynamicDocumentDataSource
|
||||
private class TestDynamicPublishedContentDataSource : IDynamicPublishedContentDataSource
|
||||
{
|
||||
public Guid GetDataType(string docTypeAlias, string propertyAlias)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Umbraco.Core.Dynamics;
|
||||
|
||||
namespace Umbraco.Tests.DynamicDocument
|
||||
{
|
||||
public static class DynamicDocumentCustomExtensionMethods
|
||||
public static class DynamicPublishedContentCustomExtensionMethods
|
||||
{
|
||||
|
||||
public static string DynamicDocumentNoParameters(this Core.Dynamics.DynamicPublishedContent doc)
|
||||
@@ -21,7 +21,7 @@ namespace Umbraco.Tests.DynamicDocument
|
||||
return custom + i + b;
|
||||
}
|
||||
|
||||
public static string DynamicDocumentListMultiParam(this DynamicDocumentList doc, string custom, int i, bool b)
|
||||
public static string DynamicDocumentListMultiParam(this DynamicPublishedContentList doc, string custom, int i, bool b)
|
||||
{
|
||||
return custom + i + b;
|
||||
}
|
||||
@@ -14,7 +14,7 @@ using umbraco.cms.businesslogic.web;
|
||||
namespace Umbraco.Tests.DynamicDocument
|
||||
{
|
||||
[TestFixture]
|
||||
public class DynamicDocumentTests : DynamicDocumentTestsBase<Umbraco.Core.Dynamics.DynamicPublishedContent, DynamicDocumentList>
|
||||
public class DynamicPublishedContentTests : DynamicDocumentTestsBase<Umbraco.Core.Dynamics.DynamicPublishedContent, DynamicPublishedContentList>
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -63,8 +63,8 @@
|
||||
<Compile Include="BusinessLogic\ApplicationTreeTest.cs" />
|
||||
<Compile Include="BusinessLogic\BaseTest.cs" />
|
||||
<Compile Include="CacheRefresherFactoryTests.cs" />
|
||||
<Compile Include="DynamicDocument\DynamicDocumentCustomExtensionMethods.cs" />
|
||||
<Compile Include="DynamicDocument\DynamicDocumentTests.cs" />
|
||||
<Compile Include="DynamicDocument\DynamicPublishedContentCustomExtensionMethods.cs" />
|
||||
<Compile Include="DynamicDocument\DynamicPublishedContentTests.cs" />
|
||||
<Compile Include="DynamicDocument\DynamicDocumentTestsBase.cs" />
|
||||
<Compile Include="DynamicDocument\DynamicNodeTests.cs" />
|
||||
<Compile Include="ObjectExtensionsTests.cs" />
|
||||
|
||||
Reference in New Issue
Block a user