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 WebRouter(IWorkflowRepository workflowRepository, string webDirectory, string logFilePath) { _rootFileDirectory = webDirectory; IWorkflow workflow = new Workflow(workflowRepository); if (!string.IsNullOrEmpty(logFilePath)) { var logger = new FileWorkflowLog(logFilePath); workflow = new WorkflowLogger(logger, workflow); } var rendererFactory = new HtmlWorkStepRendererFactory(workflow); _workflowHandler = new WorkflowHttpHandler(workflow, rendererFactory); }
public void Init() { _workStepRepository = new MemoryWorkStepRepository(); _workItemRepository = new MemoryWorkItemRepository(); _wp = new Workflow(new WorkflowRepository(_workItemRepository, _workStepRepository)); }