Example #1
0
        public void RetrieveContentFieldsJSON_ShouldReturnDictionaryString()
        {
            var keys          = new string[] { "hotproducts" };
            var contentFields = butterClient.RetrieveContentFieldsJSON(keys);

            Assert.IsNotNull(contentFields);
        }
Example #2
0
        public void RetrieveContentFieldsJSON_ShouldReturnDictionaryString()
        {
            var butterClient = new ButterCMSClient("321478403e868f0fc41f0115731f330ff720ce0b");
            var keys         = new string[2] {
                "team_members[name=Elon]", "homepage_headline"
            };
            var contentFields = butterClient.RetrieveContentFieldsJSON(keys);

            Assert.IsNotNull(contentFields);
        }
Example #3
0
        public void RetrieveContentFieldsJSON_ShouldReturnEmptyString()
        {
            var butterClient = new ButterCMSClient("321478403e868f0fc41f0115731f330ff720ce0b");
            var keys         = new string[1] {
                "NOTAREALKEY"
            };
            var actual   = butterClient.RetrieveContentFieldsJSON(keys);
            var expected = string.Empty;

            Assert.AreEqual(expected, actual);
        }