Fixing List specflow tests

--HG--
branch : autoroute
This commit is contained in:
Sebastien Ros
2012-02-07 16:04:57 -08:00
parent 74a933fb4e
commit b923915332
6 changed files with 24 additions and 137 deletions

View File

@@ -71,7 +71,17 @@ namespace Orchard.Specs.Bindings {
var contentTypeDefinition = new ContentTypeDefinition(name, name);
cdm.StoreTypeDefinition(contentTypeDefinition);
cdm.AlterTypeDefinition(name, cfg => cfg.WithPart("CommonPart").WithPart("BodyPart").WithPart("AutoroutePart").WithPart("ContainablePart").Creatable().Draftable());
cdm.AlterTypeDefinition(name, cfg => cfg.WithPart("CommonPart").WithPart("BodyPart").WithPart("TitlePart").WithPart("ContainablePart").Creatable().Draftable());
cdm.AlterTypeDefinition(name,
cfg => cfg.WithPart("AutoroutePart",
builder => builder
.WithSetting("AutorouteSettings.AllowCustomPattern", "true")
.WithSetting("AutorouteSettings.AutomaticAdjustmentOnEdit", "false")
.WithSetting("AutorouteSettings.PatternDefinitions", "[{Name:'Title', Pattern: '{Content.Slug}', Description: 'my-list'}]")
.WithSetting("AutorouteSettings.DefaultPatternIndex", "0")
));
}
});
}