public void ConsigoSelecionarTaxaDeJuros() { ITaxaJurosServico taxaJurosServico = new TaxaJurosServico(); TaxaJurosDTO taxaJurosDTO = taxaJurosServico.ObterTaxaJuros(); Assert.NotNull(taxaJurosDTO); Assert.True(taxaJurosDTO.TaxaJuros > 0); }
public void ConsigoCalcularValorTotal() { ITaxaJurosServico taxaServico = new TaxaJurosServico(); CalculoJurosDTO calculoDTO = new CalculoJurosDTO(100, 5, taxaServico.ObterTaxaJuros()); ICalculoJurosServico calculoServico = new CalculoJurosServico(); string valorJurosFormatado = calculoServico.ObterValorCalculado(calculoDTO); Assert.Equal("105,10", valorJurosFormatado); }
public void SistemaIncluiuEUtilizouCalculoEmMemoria() { ITaxaJurosServico taxaServico = new TaxaJurosServico(); CalculoJurosDTO calculoDTO = new CalculoJurosDTO(100, 5, taxaServico.ObterTaxaJuros()); ICalculoJurosServico calculoServico = new CalculoJurosServico(); string valorJurosFormatado = calculoServico.ObterValorCalculado(calculoDTO); Assert.Equal("105,10", valorJurosFormatado); Assert.Single(Banco.SelecionarCalculos()); valorJurosFormatado = calculoServico.ObterValorCalculado(calculoDTO); Assert.Equal("105,10", valorJurosFormatado); Assert.Single(Banco.SelecionarCalculos()); }