public void Setup() { _engine = new MustacheEngine(); var requestGraph = RequestGraph.CreateFor <Handler>(h => h.Get()); _view = new View(null, () => "{{Value}}", null, null, null, requestGraph.GetActionDescriptor()); }
public void Setup() { _configuration = new Configuration(); _viewConfiguration = new ViewConfiguration(); var mustacheEngine = new MustacheEngine(); _viewEngines = new List <IViewEngine> { mustacheEngine }; _viewConfiguration.ViewEngines.Configure(x => x.Append(mustacheEngine)); var embeddedViewSource = new EmbeddedViewSource(_viewConfiguration); _viewSources = new List <IViewSource> { embeddedViewSource }; _viewConfiguration.ViewSources.Configure(x => x.Append(embeddedViewSource)); _decorator = new ViewDecorator(_viewSources, _viewConfiguration, _viewEngines, _configuration, new HttpConfiguration()); }