Esempio n. 1
0
        public async Task <ActionResult <decimal> > CalcularJuros([FromQuery(Name = "valorInicial")] decimal valorInicial, [FromQuery(Name = "meses")] int meses)
        {
            var taxaJuros = await _taxaJurosService.PegarTaxaJuros();

            var valorJuros = _calculaJurosService.CalcularJuros(valorInicial, meses, taxaJuros);

            return(valorJuros);
        }
        public void taxa_juros_should_be_success()
        {
            double valor = _taxaJurosService.PegarTaxaJuros();

            Assert.Equal(0.01, valor);
        }
 public ActionResult <double> Get()
 {
     return(_taxaJurosService.PegarTaxaJuros());
 }