public void Setup() { _datasource = new List <object> { new object(), new object(), new object() }; _context = MvcMockHelpers.DynamicHttpContextBase(); RouteTable.Routes.MapRoute("default", "{controller}/{action}"); }
public void Setup() { helper = new HtmlHelper(new ViewContext { ViewData = new ViewDataDictionary(), HttpContext = MvcMockHelpers.DynamicHttpContextBase() }, MockRepository.GenerateMock <IViewDataContainer>(), new RouteCollection() ); }