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

            _httpContextWrapper.SetQueryStringItem(key, value);

            Assert.True(_valueProvider.HasValue <string>(key));
        }
示例#2
0
        public void HasValueShouldReturnTrueWhenQueryStringContainsKey()
        {
            const string key   = "id";
            const string value = "1324";

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

            Assert.IsTrue(_valueProvider.HasValue <string>(key));
        }