コード例 #1
0
        public SubstitutionHelperTest()
        {
            if (!g_substitutionAdded)
            {
                HttpResponseSubstitutionHandler.Add("name", (c, s) => "result");
                g_substitutionAdded = true;
            }

            m_mockContext = MockHttpFactory.GetHttpContext();
            m_htmlHelper  = MockHttpFactory.GetHtmlHelper(m_mockContext.Object);
        }
コード例 #2
0
 public MenuItemHelperTest()
 {
     m_helper = MockHttpFactory.GetHtmlHelper();
     m_helper.ViewContext.RouteData.Values["controller"] = "Home";
     m_helper.ViewContext.RouteData.Values["action"]     = "Index";
 }
コード例 #3
0
 public MessageHelperTest()
 {
     m_helper = MockHttpFactory.GetHtmlHelper();
 }