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); }
public MenuItemHelperTest() { m_helper = MockHttpFactory.GetHtmlHelper(); m_helper.ViewContext.RouteData.Values["controller"] = "Home"; m_helper.ViewContext.RouteData.Values["action"] = "Index"; }
public MessageHelperTest() { m_helper = MockHttpFactory.GetHtmlHelper(); }