Renaming a few UT entities to align to rest of the application.

--HG--
branch : 1.x
This commit is contained in:
andrerod
2010-12-17 17:39:57 -08:00
parent 654241d460
commit 022230d38a
24 changed files with 250 additions and 251 deletions

View File

@@ -0,0 +1,15 @@
using Orchard.ContentManagement.Handlers;
using Orchard.Tests.ContentManagement.Models;
namespace Orchard.Tests.ContentManagement.Handlers {
public class FlavoredPartHandler : ContentHandler {
public FlavoredPartHandler() {
OnGetDisplayShape<FlavoredPart>((ctx, part) => ctx.Shape.Zones["Main"].Add(part));
}
protected override void Activating(ActivatingContentContext context) {
if (context.ContentType == "beta" || context.ContentType == "alpha") {
context.Builder.Weld<FlavoredPart>();
}
}
}
}