Esempio n. 1
0
        public void TaxaJuros_ShouldReturnFee()
        {
            //Arrange and Act
            _parameters.Value.Fee = new Fee
            {
                Value = 0.01M
            };
            var taxaJuros = _sut.RetornaJuros();

            //Assert
            Assert.NotNull(taxaJuros);
            Assert.Equal(0.01M, taxaJuros.TaxaJuros);
        }
Esempio n. 2
0
        public IActionResult TaxaJuros()
        {
            try
            {
                var taxaJuros = _taxaJurosService.RetornaJuros();

                return(Ok(taxaJuros));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Exception");
                return(Problem(ex.Message));
            }
        }