2012-08-25 07:07:00 +07:00
|
|
|
using System.Collections.Generic;
|
2012-10-04 03:26:56 +05:00
|
|
|
using Umbraco.Web.Models;
|
2012-08-25 07:07:00 +07:00
|
|
|
|
2012-11-15 02:04:46 +05:00
|
|
|
namespace Umbraco.Tests.PublishedContent
|
2012-08-25 07:07:00 +07:00
|
|
|
{
|
2012-10-02 22:51:53 +05:00
|
|
|
public static class DynamicPublishedContentCustomExtensionMethods
|
2012-08-25 07:07:00 +07:00
|
|
|
{
|
|
|
|
|
|
2012-10-04 03:26:56 +05:00
|
|
|
public static string DynamicDocumentNoParameters(this DynamicPublishedContent doc)
|
2012-08-25 07:07:00 +07:00
|
|
|
{
|
|
|
|
|
return "Hello world";
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-04 03:26:56 +05:00
|
|
|
public static string DynamicDocumentCustomString(this DynamicPublishedContent doc, string custom)
|
2012-08-25 07:07:00 +07:00
|
|
|
{
|
|
|
|
|
return custom;
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-04 03:26:56 +05:00
|
|
|
public static string DynamicDocumentMultiParam(this DynamicPublishedContent doc, string custom, int i, bool b)
|
2012-08-25 07:07:00 +07:00
|
|
|
{
|
|
|
|
|
return custom + i + b;
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-02 22:51:53 +05:00
|
|
|
public static string DynamicDocumentListMultiParam(this DynamicPublishedContentList doc, string custom, int i, bool b)
|
2012-08-25 07:07:00 +07:00
|
|
|
{
|
|
|
|
|
return custom + i + b;
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-04 03:26:56 +05:00
|
|
|
public static string DynamicDocumentEnumerableMultiParam(this IEnumerable<DynamicPublishedContent> doc, string custom, int i, bool b)
|
2012-08-25 07:07:00 +07:00
|
|
|
{
|
|
|
|
|
return custom + i + b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|