public async Task M02_MapInPost()
        {
            var db = await Db.Context();

            var mapItem = await db.MapComponents.FirstAsync();

            var geoJsonItem = await db.GeoJsonContents.FirstAsync();

            var lineItem = await db.LineContents.FirstAsync();

            var post = new PostContent
            {
                Title       = "Piute Point Map Test Point",
                Slug        = "first-post",
                BodyContent =
                    $@"This post should have a map below this test showing points near Piute Point in the Grand Canyon.
{{{{mapcomponent {mapItem.ContentId}; Piute Point Map}}}}


And then we should have a GeoJson bracket code creating just the fire map:
{{{{geojson {geoJsonItem.ContentId}; GC Fire Info}}}}


And what about a line...
{{{{line {lineItem.ContentId}; Horseshoe}}}}
",
                BodyContentFormat  = ContentFormatDefaults.Content.ToString(),
                ContentId          = Guid.NewGuid(),
                CreatedBy          = "Map Tester",
                CreatedOn          = new DateTime(2020, 10, 19, 7, 16, 16),
                Folder             = "GrandCanyon",
                ShowInMainSiteFeed = true,
                Summary            = "A basic map of points around Piute Point",
                Tags = "grand canyon, piute point, map",
                UpdateNotesFormat = ContentFormatDefaults.Content.ToString()
            };

            await IronwoodPostInfo.PostTest(post);
        }
Exemple #2
0
 public async Task E10_PostTest()
 {
     await IronwoodPostInfo.PostTest(IronwoodPostInfo.WikiQuotePostContent01);
 }