public void Should_return_false_when_not_available() { // Arrange var lifecycle = new HttpSessionLifecycle(); // Will reset to original state // Act var result = lifecycle.HasSession(); // Assert Assert.That(result, Is.False); }
public IObjectCache FindCache() { return(_http.HasSession() ? _http.FindCache() : _nonHttp.FindCache()); }