Replaced HttpContext with HttpContextBase for testability.
Added mock for HttpContext.