public void GetDictionaryItem_Returns_Found_Result()
        {
            var dictionaryHelper = new DictionaryHelper(_hiveManager, _languages);

            Assert.IsTrue(dictionaryHelper.GetDictionaryItem("test1", "en-GB").Found);
        }
        public void GetDictionaryItemValue_Returns_Defailt_Value_If_Item_UnPublished()
        {
            var dictionaryHelper = new DictionaryHelper(_hiveManager, _languages);

            Assert.AreEqual("[test2/test4]", dictionaryHelper.GetDictionaryItemValue("test2/test4", null));
        }
Esempio n. 3
0
 public string GetDictionaryItemForLanguage(string key, string language, string defaultValue = null)
 {
     var dictionaryHelper = new DictionaryHelper(_requestContext.Application);
     return dictionaryHelper.GetDictionaryItemValueForLanguage(key, language, defaultValue);
 }