public ProcessCMONominationsCommand(
            IPartyMatchClient partyMatchClient,
            ICartManagementClient cartManagementClient,
            IQuoteManagementClient quoteManagementClient,
            IPartyManagementClient partyManagementClient,
            IServiceBusSender serviceBusSender,
            IMapper <Nominations, MatchPartyRequest.MatchPartyRequest> partyMatchMapper,
            IMapper <Nominations, PartyRequest> createPartyMapper,
            IMapper <Tuple <Nominations, PartyManagement.Response.IdentifierIdentificationType>, ApttusQuote> createQuoteMapper,
            IMapper <ApttusQuote, ApttusCartRequest> createQuoteRequestToFinaliseQuoteMapper,
            IValidator <Nomination> nominationValidatior)
        {
            _ = partyMatchClient ?? throw new ArgumentNullException(nameof(partyMatchClient));
            _ = cartManagementClient ?? throw new ArgumentNullException(nameof(cartManagementClient));
            _ = quoteManagementClient ?? throw new ArgumentNullException(nameof(quoteManagementClient));
            _ = partyManagementClient ?? throw new ArgumentNullException(nameof(partyManagementClient));
            _ = serviceBusSender ?? throw new ArgumentNullException(nameof(serviceBusSender));
            _ = partyMatchMapper ?? throw new ArgumentNullException(nameof(partyMatchMapper));
            _ = createPartyMapper ?? throw new ArgumentNullException(nameof(createPartyMapper));
            _ = createQuoteMapper ?? throw new ArgumentNullException(nameof(createQuoteMapper));
            _ = createQuoteRequestToFinaliseQuoteMapper ?? throw new ArgumentNullException(nameof(createQuoteRequestToFinaliseQuoteMapper));
            _ = nominationValidatior ?? throw new ArgumentNullException(nameof(nominationValidatior));

            this.partyMatchClient      = partyMatchClient;
            this.partyManagementClient = partyManagementClient;
            this.cartManagementClient  = cartManagementClient;
            this.quoteManagementClient = quoteManagementClient;
            this.partyMatchMapper      = partyMatchMapper;
            this.createPartyMapper     = createPartyMapper;
            this.createQuoteMapper     = createQuoteMapper;
            this.createQuoteRequestToFinaliseQuoteMapper = createQuoteRequestToFinaliseQuoteMapper;
            this.serviceBusSender     = serviceBusSender;
            this.nominationValidatior = nominationValidatior;
        }
Exemplo n.º 2
0
 public AdminClients(Channel channel, string accessToken)
 {
     ConfigManagementClient  = new ConfigManagementClient(channel, accessToken);
     PackageManagementClient = new PackageManagementClient(channel, accessToken);
     PartyManagementClient   = new PartyManagementClient(channel, accessToken);
 }
Exemplo n.º 3
0
 public PartyManagementClient(IPartyManagementClient partyManagementClient)
 {
     _partyManagementClient = partyManagementClient;
 }