public void GetTaxaJuros() { var _taxaJurosEsperada = 0.01M; _serviceMock = new Mock <ITaxaService>(); _serviceMock.Setup(m => m.GetTaxaJuros()).Returns(new TaxaJurosDto() { Valor = _taxaJurosEsperada }); _service = _serviceMock.Object; var _result = _service.GetTaxaJuros(); Assert.NotNull(_result); Assert.Equal(_taxaJurosEsperada, _result.Valor); }
public IActionResult GetTaxaJuros() { return(Ok(_taxaService.GetTaxaJuros())); }