public void GetValueShouldReturnValue() { const string testKey = "MyTestKey"; const string fullKey = "System.Object:" + testKey; const string value = "12345"; HttpContext.Current.Session[fullKey] = value; var retVal = _valueProvider.GetValue <Object>(testKey, typeof(string)); Assert.AreEqual(value, retVal); }
public void GetValueShouldReturnValue() { const string testKey = "MyTestKey"; const string fullKey = "System.Object:" + testKey; const string value = "12345"; _httpContextWrapper.SetSessionItem(fullKey, value); var retVal = _valueProvider.GetValue <Object>(testKey, typeof(string)); Assert.Equal(value, retVal); }