public TaggerController( ICommandInfoProvider commandInfoProvider, IDocumentsDataService service, IDocumentFactory documentFactory, IDocumentPostReadNormalizer documentReadNormalizer, IDocumentPreWriteNormalizer documentWriteNormalizer, Func <Type, ITaggerCommand> commandFactory, IFactory <ICommandSettings> commandSettingsFactory) { if (commandInfoProvider == null) { throw new ArgumentNullException(nameof(commandInfoProvider)); } this.service = service ?? throw new ArgumentNullException(nameof(service)); this.documentFactory = documentFactory ?? throw new ArgumentNullException(nameof(documentFactory)); this.documentReadNormalizer = documentReadNormalizer ?? throw new ArgumentNullException(nameof(documentReadNormalizer)); this.documentWriteNormalizer = documentWriteNormalizer ?? throw new ArgumentNullException(nameof(documentWriteNormalizer)); this.commandFactory = commandFactory ?? throw new ArgumentNullException(nameof(commandFactory)); this.commandSettingsFactory = commandSettingsFactory ?? throw new ArgumentNullException(nameof(commandSettingsFactory)); commandInfoProvider.ProcessInformation(); var commandsInformation = commandInfoProvider.CommandsInformation .Where(p => p.Key.GetInterfaces() .Contains(typeof(ISimpleTaggerCommand))); this.commandsInformation = new Dictionary <Type, ICommandInfo>(); foreach (var commandInformation in commandsInformation) { this.commandsInformation.Add(commandInformation.Key, commandInformation.Value); } }
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 XmlPresenter(IDocumentsDataService service, IDocumentsFormatTransformersFactory transformersFactory) { if (service == null) { throw new ArgumentNullException(nameof(service)); } if (transformersFactory == null) { throw new ArgumentNullException(nameof(transformersFactory)); } this.service = service; this.transformersFactory = transformersFactory; }
public FilesController(IDocumentsDataService service) { this.service = service ?? throw new ArgumentNullException(nameof(service)); }
public WorkflowReplyController(IDocumentsWorkflowsService workflow, IDocumentsDataService documents) { this.workflow = workflow; this.documents = documents; }
public DocumentFilesController(IDocumentFilesDataService documentFiles, IDocumentsDataService documents) { this.documentFiles = documentFiles; this.documents = documents; }
public DocumentsController(IDocumentsDataService documents) { this.documents = documents; }