public IPersistablePropertyValueProvider GetPersistablePropertyValueProvider( PersistanceLocation location ) { IPersistablePropertyValueProvider result = null; switch ( location ) { case PersistanceLocation.Cookie: result = new CookiePropertyValueProvider(); break; case PersistanceLocation.Session: result = new SessionPropertyValueProvider(); break; } return result; }
public CookiePropertyValueProviderTests() { _httpContextWrapper = new MockHttpContextWrapper(); _valueProvider = new CookiePropertyValueProvider(_httpContextWrapper); }
public void Setup() { HttpContext.Current = HttpContextHelper.GetHttpContext(); _valueProvider = new CookiePropertyValueProvider(); }
public void Setup() { HttpContext.Current = HttpContextHelper.GetHttpContext(); _valueProvider = new CookiePropertyValueProvider(new HttpContextWrapper()); }