Пример #1
0
        public object SettingFor(string key)
        {
            //TODO: REVIEW
            var sub = new SubstitutedRequestData(getSettingsData(), getSettingsData());

            return(sub.Value(key));
        }
        public void SetUp()
        {
            theDictionary = new Dictionary<string, string>();
            theInnerData = new InMemoryRequestData();

            theSubstitutedData = new SubstitutedRequestData(theInnerData, new DictionaryKeyValues(theDictionary));
        }
        public void SetUp()
        {
            theDictionary = new Dictionary<string, string>();
            theInnerData = new InMemoryRequestData();

            //inner / substitutions
            theSubstitutedData = new SubstitutedRequestData(theInnerData, new DictionaryKeyValues(theDictionary));

            theDictionary.Add("val", "value");
            theDictionary.Add("setting", "setting-{val}");
            theInnerData["Key"] = "*{setting}*";
        }