public TestFixture(IIncidentApplicationRepository incidentApplicationRepository, IDraftApplicationRepository draftApplicationRepository) { this._incidentApplicationRepository = incidentApplicationRepository; this._draftApplicationRepository = draftApplicationRepository; this._draftApplicationFactory = new DraftApplicationFactory(); this._draftApplicationTestFixture = new DraftApplicationTestFixture(); }
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; }