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