Moving around some handler/driver machinary

Relocating IContentHandler imlementations that power IContentXxxDriver interfaces
Giving them component role suffix Coordinator
Merging two handlers into one content part driver coordinator

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-06-22 14:34:10 -07:00
parent 5db91c1689
commit 32d59676dc
10 changed files with 57 additions and 69 deletions

View File

@@ -5,21 +5,24 @@ using Moq;
using NUnit.Framework;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.Drivers.Coordinators;
using Orchard.ContentManagement.Handlers;
using Orchard.Environment.AutofacUtil;
using Orchard.Mvc.ViewModels;
using Orchard.Tests.Utility;
using Orchard.UI.Zones;
namespace Orchard.Tests.ContentManagement {
namespace Orchard.Tests.ContentManagement.Handlers.Coordinators {
[TestFixture]
public class ContentPartDriverHandlerTests {
public class ContentPartDriverCoordinatorTests {
private IContainer _container;
[SetUp]
public void Init() {
var builder = new ContainerBuilder();
//builder.RegisterModule(new ImplicitCollectionSupportModule());
builder.RegisterType<ContentPartDriverHandler>().As<IContentHandler>();
builder.RegisterType<ContentPartDriverCoordinator>().As<IContentHandler>();
builder.RegisterAutoMocking();
_container = builder.Build();
}

View File

@@ -168,7 +168,7 @@
<Compile Include="ContentManagement\Models\Phi.cs" />
<Compile Include="ContentManagement\Models\Styled.cs" />
<Compile Include="ContentManagement\Models\StyledHandler.cs" />
<Compile Include="ContentManagement\ContentPartDriverHandlerTests.cs">
<Compile Include="ContentManagement\Handlers\Coordinators\ContentPartDriverCoordinatorTests.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="ContentManagement\Records\DeltaRecord.cs">