public void RetrieveContentItemGetsItemsFromCms()
        {
            var content = new ContentManagement();

            content.AddContentItem("MyId", "This is a string");
            content.AddContentItem("MyId2", "This is a string2");

            Assert.AreEqual(2, content.CountContentItems);
            Assert.AreEqual("This is a string", content.RetrieveContentItem("MyId"));
            Assert.AreEqual("This is a string2", content.RetrieveContentItem("MyId2"));
        }
Example #2
0
        public void AddCompressedContentItemAddsMultipleContentItemsToCms()
        {
            var content = new ContentManagement(true);

            content.AddContentItem("MyId", "This is a string");
            content.AddContentItem("MyId2", "This is a string2");

            Assert.AreEqual(2, content.CountContentItems);
            Assert.AreEqual("This is a string", content.RetrieveContentItem("MyId"));
            Assert.AreEqual("This is a string2", content.RetrieveContentItem("MyId2"));
        }
        public void AddContentItemAddsContentToCms()
        {
            var content = new ContentManagement();

            content.AddContentItem("MyId", "This is a string");

            Assert.AreEqual(1, content.CountContentItems);
            Assert.AreEqual("This is a string", content.RetrieveContentItem("MyId"));
        }