public DocCommunicatorService() { List<IDbConfiguration> configurations = new List<IDbConfiguration>(); configurations.Add(new DocsDbConfiguration()); configurations.Add(new CommonDbConfiguration()); this.unitOfWork = new UnitOfWork(configurations, Enumerable.Empty<IDbContextInitializer>()); this.rioDocumentParser = new RioDocumentParser(); }
public IncomingDocProcessor( Func<Owned<IUnitOfWork>> unitOfWorkFactory, IUnitOfWork unitOfWork, IDocRepository docRepository, IEmailRepository emailRepository, ICorrespondentRepository correspondentRepository, IRioObjectExtractor rioObjectExtractor, IRioDocumentParser rioDocumentParser, IRioValidator rioValidator) { this.unitOfWorkFactory = unitOfWorkFactory; this.unitOfWork = unitOfWork; this.docRepository = docRepository; this.emailRepository = emailRepository; this.correspondentRepository = correspondentRepository; this.rioObjectExtractor = rioObjectExtractor; this.rioDocumentParser = rioDocumentParser; this.rioValidator = rioValidator; }
public IntegrationController( IDocRepository docRepository, IUnitOfWork unitOfWork, ILotRepository lotRepository, IPersonRepository personRepository, IApplicationRepository applicationRepository, ICaseTypeRepository caseTypeRepository, IIntegrationRepository integrationRepository, INomRepository nomRepository, ICorrespondentRepository correspondentRepository, IRioDocumentParser rioDocumentParser, UserContext userContext) { this.docRepository = docRepository; this.unitOfWork = unitOfWork; this.lotRepository = lotRepository; this.personRepository = personRepository; this.applicationRepository = applicationRepository; this.integrationRepository = integrationRepository; this.caseTypeRepository = caseTypeRepository; this.nomRepository = nomRepository; this.correspondentRepository = correspondentRepository; this.rioDocumentParser = rioDocumentParser; this.userContext = userContext; }