Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        public void RenderPlainView()
        {
            mocks.ReplayAll();

            factory.RenderView(MakeViewContext("Index", null));

            mocks.VerifyAll();
        }