public async void Validar_Retorno_TaxaJuros()
        {
            mockTaxaJurosRepository.Setup(x => x.GetTaxaJuros()).Returns(Task.FromResult(new TaxaJuros()));
            TaxaJurosServices taxaJurosServices = new TaxaJurosServices(mockTaxaJurosRepository.Object, mockMemoryCache.Object);

            await taxaJurosServices.GetTaxaJuros();

            mockTaxaJurosRepository.Verify(mock => mock.GetTaxaJuros(), Times.Once());
        }
Exemplo n.º 2
0
        public void ValidaTipoGetTaxaJuros()
        {
            Juros taxaJuros = new Juros()
            {
                TaxaJuros = "0,01"
            };

            TaxaJurosServices objGetTaxaJuros = new TaxaJurosServices();

            Assert.IsType <Juros>(objGetTaxaJuros.GetTaxaJuros());
        }
Exemplo n.º 3
0
        public void RetornarGetTaxaJuros()
        {
            Juros taxaJuros = new Juros()
            {
                TaxaJuros = "0,01"
            };

            TaxaJurosServices objGetTaxaJuros = new TaxaJurosServices();

            Assert.Equal(taxaJuros.TaxaJuros, objGetTaxaJuros.GetTaxaJuros().TaxaJuros);
        }