public void GetValueShouldReturnValue()
        {
            const string key   = "id";
            const string value = "1324";

            _httpContextWrapper.SetQueryStringItem(key, value);

            Assert.Equal(value, _valueProvider.GetValue <Object>(key, typeof(string)));
        }
Пример #2
0
        public void GetValueShouldReturnValue()
        {
            const string key   = "id";
            const string value = "1324";

            HttpContext.Current = HttpContextHelper.GetHttpContext(String.Format("{0}={1}", key, value));

            Assert.AreEqual(value, _valueProvider.GetValue <Object>(key, typeof(string)));
        }