示例#1
0
        public TestFixture(IIncidentApplicationRepository incidentApplicationRepository,
                           IDraftApplicationRepository draftApplicationRepository)
        {
            this._incidentApplicationRepository = incidentApplicationRepository;
            this._draftApplicationRepository    = draftApplicationRepository;

            this._draftApplicationFactory     = new DraftApplicationFactory();
            this._draftApplicationTestFixture = new DraftApplicationTestFixture();
        }
示例#2
0
 public UpdateDraftApplicationUseCase(IDraftApplicationRepository draftApplicationRepository,
                                      IFileStorageService fileStorageService,
                                      IOutputPort outputPort,
                                      IValidator <UpdateDraftApplicationInput> validator)
 {
     this._draftApplicationRepository = draftApplicationRepository;
     this._outputPort        = outputPort;
     this._updateAttachments = new UpdateAttachments(fileStorageService);
     this._validator         = validator;
 }
示例#3
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;
 }
示例#4
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;
 }
示例#5
0
 public TestFixture(IDraftApplicationRepository draftApplicationRepository)
 {
     this._draftApplicationFactory     = new DraftApplicationFactory();
     this._draftApplicationTestFixture = new DraftApplicationTestFixture();
     this._draftApplicationRepository  = draftApplicationRepository;
 }
示例#6
0
 public TestFixture(IDraftApplicationRepository repository)
 {
     this._repository = repository;
 }