private static void AssertBreadcrumbToolTipDeserialized(RelationEditorConfiguration config) { AssertDeserialized(config); Assert.AreEqual("/", config.BreadcrumbSeparator); Assert.AreEqual(BreadcrumbMode.ToolTip, config.BreadcrumbMode); }
private static void AssertBreadcrumbCaptionDeserialized(RelationEditorConfiguration config) { AssertDeserialized(config); Assert.AreEqual("->", config.BreadcrumbSeparator); Assert.AreEqual(BreadcrumbMode.Caption, config.BreadcrumbMode); }
private static void AssertDeserialized(RelationEditorConfiguration config) { Assert.IsNotNull(config); Assert.AreEqual(2, config.ObjectTypes.Count); Assert.AreEqual("post", config.ObjectTypes[0].EnabledRelations[0].EnabledChildTypes[0].Alias); Assert.AreEqual("pagePostRelation", config.ObjectTypes[1].EnabledRelations[0].Alias); Assert.AreEqual(UmbracoObjectTypes.Document, config.ObjectTypes[1].Name); }
private static RelationEditorConfiguration CreateToolTipConfig() { var config = new RelationEditorConfiguration { BreadcrumbSeparator = "/", ObjectTypes = new List <ObjectTypeConfiguration> { new ObjectTypeConfiguration { Name = UmbracoObjectTypes.Document, Alias = "page", EnabledRelations = new List <EnabledRelationConfiguration> { new EnabledRelationConfiguration { Alias = "pagePostRelation", EnabledChildTypes = new List <EnabledChildTypeConfiguration> { new EnabledChildTypeConfiguration { Alias = "post" } } }, new EnabledRelationConfiguration { Alias = "pageNewsPostRelation" }, } }, new ObjectTypeConfiguration { Name = UmbracoObjectTypes.Document, Alias = "post", EnabledRelations = new List <EnabledRelationConfiguration> { new EnabledRelationConfiguration { Alias = "pagePostRelation" } } } } }; return(config); }
private static RelationEditorConfiguration CreateToolTipConfig() { var config = new RelationEditorConfiguration { BreadcrumbSeparator = "/", ObjectTypes = new List<ObjectTypeConfiguration> { new ObjectTypeConfiguration { Name = UmbracoObjectTypes.Document, Alias = "page", EnabledRelations = new List<EnabledRelationConfiguration> { new EnabledRelationConfiguration { Alias = "pagePostRelation", EnabledChildTypes = new List<EnabledChildTypeConfiguration> { new EnabledChildTypeConfiguration { Alias = "post" } } }, new EnabledRelationConfiguration {Alias = "pageNewsPostRelation"}, } }, new ObjectTypeConfiguration { Name = UmbracoObjectTypes.Document, Alias = "post", EnabledRelations = new List<EnabledRelationConfiguration> { new EnabledRelationConfiguration { Alias = "pagePostRelation" } } } } }; return config; }