예제 #1
0
 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));
 }
예제 #2
0
 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));
 }