public RenderingTests() { _engine = new RenderingEngine(new DefaultRenderer(), new PlainTextRendering("<null>")); _engine.RegisterRenderer <string>(new DefaultRenderer()); _engine.RegisterRenderer(typeof(IDictionary), new DictionaryRenderer()); _engine.RegisterRenderer(typeof(IList), new ListRenderer()); _engine.RegisterRenderer(typeof(IEnumerable), new SequenceRenderer()); }
public ExecuteRequestHandler(IKernel kernel) : base(kernel) { _renderingEngine = new RenderingEngine(new DefaultRenderer(), new PlainTextRendering("<null>")); _renderingEngine.RegisterRenderer(typeof(string), new DefaultRenderer()); _renderingEngine.RegisterRenderer(typeof(IDictionary), new DictionaryRenderer()); _renderingEngine.RegisterRenderer(typeof(IList), new ListRenderer()); _renderingEngine.RegisterRenderer(typeof(IEnumerable), new SequenceRenderer()); }
public RenderingTests() { _engine = new RenderingEngine(new DefaultRenderer()); _engine.RegisterRenderer <string>(new DefaultRenderer()); // _engine.RegisterRenderer(typeof(IEnumerable), new CollectionRenderer()); _engine.RegisterRenderer(typeof(IDictionary), new DictionaryRenderer()); _engine.RegisterRenderer(typeof(IList), new ListRenderer()); _engine.RegisterRenderer(typeof(IEnumerable), new SequenceRenderer()); }
public ExecuteRequestHandler(IKernel kernel) { _kernel = kernel; _renderingEngine = new RenderingEngine(new DefaultRenderer(), new PlainTextRendering("<null>")); _renderingEngine.RegisterRenderer <string>(new DefaultRenderer()); _renderingEngine.RegisterRenderer(typeof(IDictionary), new DictionaryRenderer()); _renderingEngine.RegisterRenderer(typeof(IList), new ListRenderer()); _renderingEngine.RegisterRenderer(typeof(IEnumerable), new SequenceRenderer()); _kernel.KernelEvents.Subscribe(this); }