/// <summary>
        /// The post async.
        /// </summary>
        /// <param name="message">
        /// The message.
        /// </param>
        /// <returns>
        /// The <see cref="Task"/>.
        /// </returns>
        public async Task <SecurityEnrichmentMessage> PostAsync(SecurityEnrichmentMessage message)
        {
            this.logger.LogInformation($"about to make a request to {Route}");
            var response = await this.PostAsync(message, Route);

            this.logger.LogInformation($"completed a request to {Route}");

            return(response);
        }
        private async Task <SecurityEnrichmentMessage> Enrich(IReadOnlyCollection <SecurityEnrichmentDto> securities)
        {
            var bondsWithoutRrpsRic = securities.Where(w => _cfiInstrumentTypeMapper.MapCfi(w.Cfi) == InstrumentTypes.Bond && string.IsNullOrEmpty(w.Ric)).ToList();

            if (bondsWithoutRrpsRic.Any())
            {
                await EnrichBondWithRicFromTr(bondsWithoutRrpsRic);
            }

            var clientServiceMessage = new SecurityEnrichmentMessage {
                Securities = securities.ToArray()
            };
            var clientServiceResponse = await this._api.PostAsync(clientServiceMessage);

            return(clientServiceResponse);
        }
        public async Task Get()
        {
            var repo = new EnrichmentApi(
                this.configuration,
                this.httpClientFactory,
                this.policyFactory,
                this.logger);

            var message = new SecurityEnrichmentMessage
            {
                Securities = new[] { new SecurityEnrichmentDto {
                                         Sedol = "0408284"
                                     } }
            };

            await repo.PostAsync(message);

            Assert.IsTrue(true);
        }