public void GetValueShouldReturnValue() { const string key = "id"; const string value = "1324"; _mockHttpContextWrapper.SetFormItem(key, value); Assert.Equal(value, _valueProvider.GetValue <Object>(key, typeof(string))); }
public void GetValueShouldReturnValue() { const string key = "id"; const string value = "1324"; var form = new NameValueCollection(); form.Add(key, value); HttpContextHelper.SetRequestForm(form); Assert.AreEqual(value, _valueProvider.GetValue <Object>(key, typeof(string))); }