public GetDictionaryItemValue ( string key, string defaultValue = null ) : string | ||
key | string | The key. |
defaultValue | string | The default value. |
return | string |
public void GetDictionaryItemValue_Returns_Defailt_Value_If_Item_UnPublished() { var dictionaryHelper = new DictionaryHelper(_hiveManager, _languages); Assert.AreEqual("[test2/test4]", dictionaryHelper.GetDictionaryItemValue("test2/test4", null)); }
public string GetDictionaryItem(string key, string defaultValue = null) { var dictionaryHelper = new DictionaryHelper(_requestContext.Application); return dictionaryHelper.GetDictionaryItemValue(key, defaultValue); }