public TestBase() { connFactory = new Neo4jConnectionFactory(); paths = new PathsDataService(connFactory); folders = new FoldersDataService(connFactory, paths); workflows = new WorkflowService(AssemblyDirectory + "\\" + ConfigurationManager.AppSettings["WorkflowFolder"], new Guid(ConfigurationManager.AppSettings["WorkflowStoreId"]), connFactory); documentFiles = new DocumentFilesDataService(connFactory, paths); documentsWorkflows = new DocumentsWorkflowsService(connFactory, workflows, documentFiles); documents = new DocumentsDataService(connFactory, paths, documentsWorkflows); connFactory.InitAndEraseAll(); }
public DocumentFilesController(IDocumentFilesDataService documentFiles, IDocumentsDataService documents) { this.documentFiles = documentFiles; this.documents = documents; }
public DocumentsWorkflowsService(IConnectionFactory connFactory, IWorkflowService workflowService, IDocumentFilesDataService documentFiles) { client = connFactory.GetConnection(); this.workflowService = workflowService; this.documentFiles = documentFiles; }