コード例 #1
0
 public SprintCommandHandler(SprintRepository sprintRepository, ISprintFactory sprintFactory, ISprintSearcher sprintSearcher, IIssueSearcher issueSearcher)
 {
     this.sprintRepository = sprintRepository;
     this.sprintFactory    = sprintFactory;
     this.sprintSearcher   = sprintSearcher;
     this.issueSearcher    = issueSearcher;
 }
コード例 #2
0
 public SprintCreator(ICreatesValidators <CreateSprintRequest> validatorFactory,
                      IGetsCurrentProject projectGetter,
                      IEntityData sprintRepo,
                      IGetsTransaction transactionFactory,
                      IResponseFactory <CreateSprintResponse> responseFactory,
                      ISprintFactory sprintFactory)
 {
     if (sprintFactory == null)
     {
         throw new ArgumentNullException(nameof(sprintFactory));
     }
     if (responseFactory == null)
     {
         throw new ArgumentNullException(nameof(responseFactory));
     }
     if (transactionFactory == null)
     {
         throw new ArgumentNullException(nameof(transactionFactory));
     }
     if (sprintRepo == null)
     {
         throw new ArgumentNullException(nameof(sprintRepo));
     }
     if (projectGetter == null)
     {
         throw new ArgumentNullException(nameof(projectGetter));
     }
     if (validatorFactory == null)
     {
         throw new ArgumentNullException(nameof(validatorFactory));
     }
     this.sprintFactory      = sprintFactory;
     this.responseFactory    = responseFactory;
     this.transactionFactory = transactionFactory;
     this.sprintRepo         = sprintRepo;
     this.projectGetter      = projectGetter;
     this.validatorFactory   = validatorFactory;
 }