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());
        }
Esempio n. 2
0
        public void ValidaTipoGetTaxaJuros()
        {
            Juros taxaJuros = new Juros()
            {
                TaxaJuros = "0,01"
            };

            TaxaJurosServices objGetTaxaJuros = new TaxaJurosServices();

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

            TaxaJurosServices objGetTaxaJuros = new TaxaJurosServices();

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