static SolidPublishedCaches CreatePublishedContent()
        {
            var caches = new SolidPublishedCaches();
            var cache = caches.ContentCache;

            var props = new[]
                    {
                        new PublishedPropertyType("prop1", 1, "?"), 
                    };

            var contentType1 = new PublishedContentType(1, "ContentType1", props);
            var contentType2 = new PublishedContentType(2, "ContentType2", props);
            var contentType2s = new PublishedContentType(3, "ContentType2Sub", props);

            cache.Add(new SolidPublishedContent(contentType1)
                {
                    Id = 1,
                    SortOrder = 0,
                    Name = "Content 1",
                    UrlName = "content-1",
                    Path = "/1",
                    Level = 1,
                    Url = "/content-1",
                    ParentId = -1,
                    ChildIds = new int[] {},
                    Properties = new Collection<IPublishedProperty>
                        {
                            new SolidPublishedProperty
                                {
                                    PropertyTypeAlias = "prop1",
                                    HasValue = true,
                                    Value = 1234,
                                    DataValue = "1234"
                                }
                        }
                });

            cache.Add(new SolidPublishedContent(contentType2)
                {
                    Id = 2,
                    SortOrder = 1,
                    Name = "Content 2",
                    UrlName = "content-2",
                    Path = "/2",
                    Level = 1,
                    Url = "/content-2",
                    ParentId = -1,
                    ChildIds = new int[] { },
                    Properties = new Collection<IPublishedProperty>
                            {
                                new SolidPublishedProperty
                                    {
                                        PropertyTypeAlias = "prop1",
                                        HasValue = true,
                                        Value = 1234,
                                        DataValue = "1234"
                                    }
                            }
                });

            cache.Add(new SolidPublishedContent(contentType2s)
            {
                Id = 3,
                SortOrder = 2,
                Name = "Content 2Sub",
                UrlName = "content-2sub",
                Path = "/3",
                Level = 1,
                Url = "/content-2sub",
                ParentId = -1,
                ChildIds = new int[] { },
                Properties = new Collection<IPublishedProperty>
                            {
                                new SolidPublishedProperty
                                    {
                                        PropertyTypeAlias = "prop1",
                                        HasValue = true,
                                        Value = 1234,
                                        DataValue = "1234"
                                    }
                            }
            });

            return caches;
        }
        static SolidPublishedCaches CreatePublishedContent()
        {
            var caches = new SolidPublishedCaches();
            var cache  = caches.ContentCache;

            var props = new[]
            {
                new PublishedPropertyType("prop1", 1, System.Guid.Empty),
            };

            var contentType1  = new PublishedContentType(1, "ContentType1", props);
            var contentType2  = new PublishedContentType(2, "ContentType2", props);
            var contentType2s = new PublishedContentType(3, "ContentType2Sub", props);

            cache.Add(new SolidPublishedContent(contentType1)
            {
                Id         = 1,
                SortOrder  = 0,
                Name       = "Content 1",
                UrlName    = "content-1",
                Path       = "/1",
                Level      = 1,
                Url        = "/content-1",
                ParentId   = -1,
                ChildIds   = new int[] {},
                Properties = new Collection <IPublishedProperty>
                {
                    new SolidPublishedProperty
                    {
                        PropertyTypeAlias = "prop1",
                        HasValue          = true,
                        Value             = 1234,
                        DataValue         = "1234"
                    }
                }
            });

            cache.Add(new SolidPublishedContent(contentType2)
            {
                Id         = 2,
                SortOrder  = 1,
                Name       = "Content 2",
                UrlName    = "content-2",
                Path       = "/2",
                Level      = 1,
                Url        = "/content-2",
                ParentId   = -1,
                ChildIds   = new int[] { },
                Properties = new Collection <IPublishedProperty>
                {
                    new SolidPublishedProperty
                    {
                        PropertyTypeAlias = "prop1",
                        HasValue          = true,
                        Value             = 1234,
                        DataValue         = "1234"
                    }
                }
            });

            cache.Add(new SolidPublishedContent(contentType2s)
            {
                Id         = 3,
                SortOrder  = 2,
                Name       = "Content 2Sub",
                UrlName    = "content-2sub",
                Path       = "/3",
                Level      = 1,
                Url        = "/content-2sub",
                ParentId   = -1,
                ChildIds   = new int[] { },
                Properties = new Collection <IPublishedProperty>
                {
                    new SolidPublishedProperty
                    {
                        PropertyTypeAlias = "prop1",
                        HasValue          = true,
                        Value             = 1234,
                        DataValue         = "1234"
                    }
                }
            });

            return(caches);
        }