public Task <Response> ListagemMoedas() { var listagemMoedas = _conversaoMoedas.ListagemMoedas(); _response.DataRetorno = DateTime.Now; _response.Mensagem = listagemMoedas.Count > 0 ? "Listagem de moedas efetuada com sucesso." : "Ops! ocorreu um erro com a listagem das moedas."; _response.Sucesso = listagemMoedas.Count > 0; _response.ObjetoRetorno = listagemMoedas.Count > 0 ? listagemMoedas : null; return(Task.FromResult(_response)); }
public void DEVE_RETORNAR_LISTA_COM_UM_OU_MAIS_ITENS_DROP() { var retorno = _conversaoMoedas.ListagemMoedas(); Assert.IsTrue(retorno.Count > 0); }