Updating location formats on view engine to support ~/Views/Models/ path in any active package. Enables rendering of EditorTemplates and opens the door for distributed rendering of content or widgets.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041319
This commit is contained in:
loudej
2009-11-18 23:49:05 +00:00
parent 418453853d
commit b50f2c6fc7
9 changed files with 53 additions and 25 deletions

View File

@@ -8,6 +8,7 @@ using NUnit.Framework;
using Orchard.Environment;
using Orchard.Mvc.ModelBinders;
using Orchard.Mvc.Routes;
using Orchard.Packages;
namespace Orchard.Tests.Environment {
[TestFixture]
@@ -35,7 +36,9 @@ namespace Orchard.Tests.Environment {
new[] { provider1, provider2 },
publisher,
new[] { modelBinderProvider1, modelBinderProvider2 },
modelBinderPublisher);
modelBinderPublisher,
new ViewEngineCollection(),
new Moq.Mock<IPackageManager>().Object);
runtime.Activate();