Beispiel #1
0
        public void QuandoEnderecoInvalido_RetornaErro()
        {
            var client = new HttpClient();

            client.BaseAddress = new Uri("http://www.teste.com/");
            client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

            this.TaxaJurosRepositorio = new TaxaJurosRepositorio(client);

            var result = this.TaxaJurosRepositorio.GetTaxa();

            Assert.IsFalse(result.Result.Sucesso);
            Assert.AreEqual(result.Result.Mensagem, "Erro ao buscar a taxa de juros");
        }
Beispiel #2
0
 public RgrCalcularJuros(TaxaJurosRepositorio ws)
 {
     this._repositorio = ws;
 }
Beispiel #3
0
 public void Init()
 {
     this.TaxaJurosRepositorio = new TaxaJurosRepositorio();
 }