Exemplo n.º 1
0
 public string GetDictionaryItem(string key, string defaultValue = null)
 {
     var dictionaryHelper = new DictionaryHelper(_requestContext.Application);
     return dictionaryHelper.GetDictionaryItemValue(key, defaultValue);
 }
        public void GetDictionaryItemValue_Returns_Defailt_Value_If_Item_UnPublished()
        {
            var dictionaryHelper = new DictionaryHelper(_hiveManager, _languages);

            Assert.AreEqual("[test2/test4]", dictionaryHelper.GetDictionaryItemValue("test2/test4", null));
        }