public CriarPlanoDeAcaoCommandHandler(IUserPrincipalBuilder userPrincipalBuilder, IPlanoDeAcaoReadOnlyRepository planoDeAcaoReadOnlyRepository, IPlanoDeAcaoWriteOnlyRepository planoDeAcaoWriteOnlyRepository, IAuditTrailProvider auditTrailProvider) { this.userPrincipalBuilder = userPrincipalBuilder ?? throw new System.ArgumentNullException(nameof(userPrincipalBuilder)); this.planoDeAcaoReadOnlyRepository = planoDeAcaoReadOnlyRepository ?? throw new System.ArgumentNullException(nameof(planoDeAcaoReadOnlyRepository)); this.planoDeAcaoWriteOnlyRepository = planoDeAcaoWriteOnlyRepository ?? throw new System.ArgumentNullException(nameof(planoDeAcaoWriteOnlyRepository)); this.auditTrailProvider = auditTrailProvider ?? throw new System.ArgumentNullException(nameof(auditTrailProvider)); }
public PlanosDeAcaoController(IPlanoDeAcaoReadOnlyRepository planoDeAcaoReadOnlyRepository, IMediator mediator, IMapper mapper, IUserPrincipalBuilder userPrincipalBuilder) { this.planoDeAcaoReadOnlyRepository = planoDeAcaoReadOnlyRepository ?? throw new ArgumentNullException(nameof(planoDeAcaoReadOnlyRepository)); this.mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); this.userPrincipalBuilder = userPrincipalBuilder ?? throw new ArgumentNullException(nameof(userPrincipalBuilder)); }