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();
 }