public async Task Obter_Fundos_Atraves_do_Handler()
        {
            var entrypoint  = "http://www.mocky.io/v2/5e342ab33000008c00d96342";
            var listaFundos = await _fundoHandler.ObterFundosAsync(entrypoint, new CancellationTokenSource().Token);

            Assert.True(listaFundos.Fundos.Any());
        }
예제 #2
0
        public async Task <IEnumerable <FundoInvestimento> > ObterInvestimentosFundos(CancellationToken cancellationToken)
        {
            var fundos = await _fundoHandler.ObterFundosAsync(_options.Value.FundosEndPoint, cancellationToken);

            if (fundos == null)
            {
                return(null);
            }
            return(_mapper.Map <List <FundoInvestimento> >(fundos.Fundos));
        }