Beispiel #1
0
        public void Validar_taxa_de_juros_com_sucesso()
        {
            _taxaJuros = new dto.TaxaJuros(_valorTaxaDeJuros);

            Action act = () => _taxaJuros.ValidarTaxa();

            act.Should().NotThrow();
            _taxaJuros.Valor.Should().Be(_valorTaxaDeJuros);
        }
Beispiel #2
0
        public void Validar_taxa_de_juros_com_erro()
        {
            var taxaInvalida    = -1;
            var excecaoEsperada = new InvalidOperationException(Constantes.MENSAGEM_TAXA_JUROS_INVALIDA);

            _taxaJuros = new dto.TaxaJuros(taxaInvalida);

            Action act = () => _taxaJuros.ValidarTaxa();

            act.Should().Throw <InvalidOperationException>().WithMessage(Constantes.MENSAGEM_TAXA_JUROS_INVALIDA);
        }
Beispiel #3
0
        public void Criar_taxa_de_juros_com_sucesso()
        {
            _taxaJuros = new dto.TaxaJuros(_valorTaxaDeJuros);

            _taxaJuros.Valor.Should().Be(_valorTaxaDeJuros);
        }