public void SetUp()
        {
            theHttpContext = MockRepository.GenerateMock<HttpContextBase>();
            theHttpSession = new StubSession();
            theHttpContext.Stub(x => x.Session).Return(theHttpSession);

            theSessionState = new SimpleSessionState(theHttpContext);
        }
Beispiel #2
0
        public void SetUp()
        {
            theHttpContext = MockRepository.GenerateMock <HttpContextBase>();
            theHttpSession = new StubSession();
            theHttpContext.Stub(x => x.Session).Return(theHttpSession);

            theSessionState = new SimpleSessionState(theHttpContext);
        }