public void Init()
        {
            var workStepRepository = new MemoryWorkStepRepository();
            var workItemRepository = new MemoryWorkItemRepository();

            var workflowRepository = new WorkflowRepository(workItemRepository, workStepRepository);
            _wp = new Workflow(workflowRepository);
            _jsonRenderer = new JsonRenderer(_wp);
        }
        protected string ConvertDocumentToJson(JupyterDocument document)
        {
            var writer   = new StringWriter();
            var renderer = new JsonRenderer(writer);

            renderer.Render(document);
            writer.Flush();
            return(writer.ToString());
        }
Beispiel #3
0
        public void Init()
        {
            var workStepRepository = new MemoryWorkStepRepository();
            var workItemRepository = new MemoryWorkItemRepository();

            var workflowRepository = new WorkflowRepository(workItemRepository, workStepRepository);

            _wp           = new Workflow(workflowRepository);
            _jsonRenderer = new JsonRenderer(_wp);
        }
 public static IHtmlContent Language(this IHtmlHelper _, LanguageSettings languageSettings)
 {
     return(JsonRenderer.Render(languageSettings));
 }