mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Removing ContentType
--HG-- branch : theming
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Orchard.Core.Tests.Body {
|
||||
public void BodyCanHandleLongText() {
|
||||
var contentManager = _container.Resolve<IContentManager>();
|
||||
|
||||
contentManager.Create<Thing>(ThingDriver.ContentType.Name, t => {
|
||||
contentManager.Create<Thing>(ThingDriver.ContentTypeName, t => {
|
||||
t.As<BodyPart>().Record = new BodyPartRecord();
|
||||
t.Text = new String('x', 10000);
|
||||
});
|
||||
@@ -69,10 +69,10 @@ namespace Orchard.Core.Tests.Body {
|
||||
[UsedImplicitly]
|
||||
public class ThingHandler : ContentHandler {
|
||||
public ThingHandler() {
|
||||
Filters.Add(new ActivatingFilter<Thing>(ThingDriver.ContentType.Name));
|
||||
Filters.Add(new ActivatingFilter<ContentPart<CommonPartVersionRecord>>(ThingDriver.ContentType.Name));
|
||||
Filters.Add(new ActivatingFilter<CommonPart>(ThingDriver.ContentType.Name));
|
||||
Filters.Add(new ActivatingFilter<BodyPart>(ThingDriver.ContentType.Name));
|
||||
Filters.Add(new ActivatingFilter<Thing>(ThingDriver.ContentTypeName));
|
||||
Filters.Add(new ActivatingFilter<ContentPart<CommonPartVersionRecord>>(ThingDriver.ContentTypeName));
|
||||
Filters.Add(new ActivatingFilter<CommonPart>(ThingDriver.ContentTypeName));
|
||||
Filters.Add(new ActivatingFilter<BodyPart>(ThingDriver.ContentTypeName));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,10 +87,7 @@ namespace Orchard.Core.Tests.Body {
|
||||
}
|
||||
|
||||
public class ThingDriver : ContentPartDriver<Thing> {
|
||||
public readonly static ContentType ContentType = new ContentType {
|
||||
Name = "thing",
|
||||
DisplayName = "Thing"
|
||||
};
|
||||
public static readonly string ContentTypeName = "thing";
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user