Exemple #1
0
 public CreateDraftApplicationUseCase(ICurrentUserContext userContext,
                                      IFileStorageService fileStorageService,
                                      IDraftApplicationRepository draftApplicationRepository,
                                      IOutputPort outputPort,
                                      IValidator <CreateDraftApplicationInput> validator)
 {
     this._draftApplicationRepository = draftApplicationRepository;
     this._fileStorageService         = fileStorageService;
     this._outputPort              = outputPort;
     this._attachmentsFactory      = new AttachmentsFactory();
     this._draftApplicationFactory = new DraftApplicationFactory(userContext);
     this._validator = validator;
 }
Exemple #2
0
 public PostApplicationUseCase(IIncidentApplicationRepository incidentApplicationRepository,
                               IDraftApplicationRepository draftApplicationRepository,
                               ICurrentUserContext userContext,
                               IFileStorageService fileStorageService,
                               IOutputPort outputPort,
                               IValidator <PostApplicationInput> validator, IEventProcessor eventProcesor)
 {
     this._incidentApplicationRepository = incidentApplicationRepository;
     this._draftApplicationRepository    = draftApplicationRepository;
     this._fileStorageService            = fileStorageService;
     this._outputPort                 = outputPort;
     this._attachmentsFactory         = new AttachmentsFactory();
     this._incidentApplicationFactory = new IncidentApplicationFactory(userContext);
     this._validator     = validator;
     this._eventProcesor = eventProcesor;
 }
Exemple #3
0
 public UpdateAttachments(IFileStorageService fileStorageService)
 {
     this._attachmentsFactory = new AttachmentsFactory();
     this._fileStorageService = fileStorageService;
 }