Exemplo n.º 1
0
 public GetWorkOrderQueryHandler(ILogAs logAs,
                                 IMapper mapper,
                                 IOrchestrator orchestrator,
                                 IWorkOrderReadRepository workOrderReadRepository,
                                 IWorkOrderWriteRepository workOrderWriteRepository,
                                 IPlatoOrderProvider platoOrderProvider,
                                 IDomainConverter domainConverter)
 {
     _logAs                    = logAs ?? throw Error.ArgumentNull(nameof(logAs));
     _mapper                   = mapper ?? throw Error.ArgumentNull(nameof(mapper));
     _orchestrator             = orchestrator ?? throw Error.ArgumentNull(nameof(orchestrator));
     _workOrderReadRepository  = workOrderReadRepository ?? throw Error.ArgumentNull(nameof(workOrderReadRepository));
     _workOrderWriteRepository = workOrderWriteRepository ?? throw Error.ArgumentNull(nameof(workOrderWriteRepository));
     _platoOrderProvider       = platoOrderProvider ?? throw Error.ArgumentNull(nameof(platoOrderProvider));
     _domainConverter          = domainConverter ?? throw Error.ArgumentNull(nameof(domainConverter));
 }
Exemplo n.º 2
0
 public CreatePlatoOrderCommandHandler(ILogAs logAs,
                                       IPlatoOrderWriteRepository platoOrderWriteRepository,
                                       IWorkOrderWriteRepository workOrderWriteRepository,
                                       IIdentifierProvider identifierProvider,
                                       IVersionProvider versionProvider,
                                       IPlatoOrderProvider platoOrderProvider,
                                       IPlatoOrderChecker platoOrderChecker,
                                       IDomainConverter domainConverter)
 {
     _logAs = logAs ?? throw Error.ArgumentNull(nameof(logAs));
     _platoOrderWriteRepository = platoOrderWriteRepository ?? throw Error.ArgumentNull(nameof(platoOrderWriteRepository));
     _workOrderWriteRepository  = workOrderWriteRepository ?? throw Error.ArgumentNull(nameof(workOrderWriteRepository));
     _identifierProvider        = identifierProvider ?? throw Error.ArgumentNull(nameof(identifierProvider));
     _versionProvider           = versionProvider ?? throw Error.ArgumentNull(nameof(versionProvider));
     _platoOrderProvider        = platoOrderProvider ?? throw Error.ArgumentNull(nameof(platoOrderProvider));
     _platoOrderChecker         = platoOrderChecker ?? throw Error.ArgumentNull(nameof(platoOrderChecker));
     _domainConverter           = domainConverter ?? throw Error.ArgumentNull(nameof(domainConverter));
 }