예제 #1
0
        public void TestUpdateTeaser()
        {
            var article = this.MakeSampleArticle();
            var teaser = new Teaser(article)
            {
                Preamble = "New teaser",
                ImageLink = "Text"
            };
            teaser.Create();

            teaser.Preamble = "header 2";
            teaser.Update();

            teaser.Read();
            Assert.AreEqual("header 2", teaser.Preamble);
        }