public async Task Obter_Renda_Fixa_Atraves_do_Handler() { var entrypoint = "http://www.mocky.io/v2/5e3429a33000008c00d96336"; var listaRendaFixa = await _rendaFixaHandler.ObterRendaFixaAsync(entrypoint, new CancellationTokenSource().Token); Assert.True(listaRendaFixa.Lcis.Any()); }
public async Task <IEnumerable <RendaFixa> > ObterInvestimentosRendaFixa(CancellationToken cancellationToken) { var rendaFixa = await _rendaFixaHandler.ObterRendaFixaAsync(_options.Value.RendaFixaEndPoint, cancellationToken); if (rendaFixa == null) { return(null); } return(_mapper.Map <List <RendaFixa> >(rendaFixa.Lcis)); }