public CommentController(
     ICommentMapper commentMapper, 
     IAddEntityCommand addEntityCommand, 
     ICommentControllerValidator validator)
 {
     this.commentMapper = commentMapper;
     this.addEntityCommand = addEntityCommand;
     this.validator = validator;
 }
 public AddResponseRequestHandler(
     IAddEntityCommand addEntityCommand,
     IGetEntityByIdQuery getEntityByIdQuery,
     IGetAllEntitiesQuery getAllEntitiesQuery,
     IHttpContextAccessor httpContextAccessor)
 {
     AddEntityCommand    = addEntityCommand;
     GetEntityByIdQuery  = getEntityByIdQuery;
     GetAllEntitiesQuery = getAllEntitiesQuery;
     HttpContextAccessor = httpContextAccessor;
 }
 public BlogPostController(IAddEntityCommand addEntityCommand, 
     IBlogPostMapper blogPostMapper, 
     IBlogPostControllerValidator validator, 
     IEmailSenderService emailSenderService, 
     IGetAllEntityQuery getAllEntityQuery, 
     IBlogPostViewModelBuilder blogPostViewModelBuilder, 
     IGetEntityByIdQuery getEntityByIdQuery)
 {
     this.addEntityCommand = addEntityCommand;
     this.blogPostMapper = blogPostMapper;
     this.validator = validator;
     this.emailSenderService = emailSenderService;
     this.getAllEntityQuery = getAllEntityQuery;
     this.blogPostViewModelBuilder = blogPostViewModelBuilder;
     this.getEntityByIdQuery = getEntityByIdQuery;
 }
示例#4
0
 public AddQuestionnaireRequestHandler(IAddEntityCommand addEntityCommand, IGetEntityByIdQuery getEntityByIdQuery, ITimeProvider timeProvider)
 {
     AddEntityCommand   = addEntityCommand;
     GetEntityByIdQuery = getEntityByIdQuery;
     TimeProvider       = timeProvider;
 }
示例#5
0
 public RegisterUserRequestHandler(IAddEntityCommand addEntityCommand)
 {
     AddEntityCommand = addEntityCommand;
 }
示例#6
0
 public AddSectionRequestHandler(IAddEntityCommand addEntityCommand, IGetEntityByIdQuery getEntityByIdQuery)
 {
     AddEntityCommand   = addEntityCommand;
     GetEntityByIdQuery = getEntityByIdQuery;
 }
 public SmtpClientEmailerService(IAddEntityCommand addEntityCommand)
 {
     this.addEntityCommand = addEntityCommand;
     SmtpClient = new SmtpClient();
 }