Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var loginCtrl = CreateController();
- var mockSession = MockRepository.GenerateMock<HttpSessionStateBase>();
- var mockRequest = MockRepository.GenerateMock<HttpRequestBase>();
- loginCtrl.HttpContext.BackToRecord();
- loginCtrl.HttpContext.Stub(c => c.Session).Return(mockSession);
- loginCtrl.HttpContext.Stub(c => c.Request).Return(mockRequest);
- loginCtrl.HttpContext.Replay();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement