private string Render(string viewName, StubViewData viewData) { var context = new StubViewContext() { ControllerName = "vbhome", ViewName = viewName, Output = new StringBuilder(), Data = viewData }; _factory.RenderView(context); return(context.Output.ToString()); }
public void RenderPlainView() { mocks.ReplayAll(); factory.RenderView(MakeViewContext("Index", null)); mocks.VerifyAll(); }