public void HasValueShouldReturnTrueWhenQueryStringContainsKey() { const string key = "id"; const string value = "1324"; _httpContextWrapper.SetQueryStringItem(key, value); Assert.True(_valueProvider.HasValue <string>(key)); }
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)); }