public void testCreateBlogPost()
        {
            CreateAsset asset = new CreateAsset();
            asset.Asset.Type = AssetTypes.BlogPostAsset;

            BlogPostAsset o = new BlogPostAsset(asset);

            Assert.IsNotNull(o);
        }
        public void testProps()
        {
            CreateAsset asset = new CreateAsset();
            asset.Asset.Type = AssetTypes.BlogPostAsset;

            BlogPostAsset o = new BlogPostAsset(asset);

            o.AuthorName = "nate";
            Assert.AreEqual("nate",o.AuthorName);

            o.DisplayTitle = "unit test";
            Assert.AreEqual("unit test",o.DisplayTitle);

            o.PostBody  = "blah";
            Assert.AreEqual("blah",o.PostBody);

            Assert.AreEqual(asset.Asset, o.Asset);
            Assert.AreEqual(asset.Header, o.Header);
        }
        public void testCreateBlogPost()
        {
            ContentService service = new ContentService(TEST_URL,TEST_UID,TEST_PASS);

            BlogPostAsset p = new BlogPostAsset(service.GetEmptyAsset(AssetTypes.BlogPostAsset));

            p.AuthorName="nate";
            p.DisplayTitle="Test Post";
            p.PostBody="<div class=\"rxbodyfield\"><b>.NET Unit Test</b></div>";

            p.Asset.Path = "/Assets/uploads/new-test-blog-" + DateTime.Now.Ticks.ToString();
            p.Asset.Language = "en-us";
            p.Asset.CreateDate = DateTime.Now.ToUniversalTime().ToString();
            p.Asset.CreatedBy = "unittest";
            p.Asset.LastModifiedDate = DateTime.Now.ToUniversalTime().ToString();
            p.Asset.LastModifier = "unittest";

            Console.WriteLine(p.ToCreateAsset().ToString());
            service.CreateAsset(p.ToCreateAsset());
        }