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()); }
public void ValidaTipoGetTaxaJuros() { Juros taxaJuros = new Juros() { TaxaJuros = "0,01" }; TaxaJurosServices objGetTaxaJuros = new TaxaJurosServices(); Assert.IsType <Juros>(objGetTaxaJuros.GetTaxaJuros()); }
public void RetornarGetTaxaJuros() { Juros taxaJuros = new Juros() { TaxaJuros = "0,01" }; TaxaJurosServices objGetTaxaJuros = new TaxaJurosServices(); Assert.Equal(taxaJuros.TaxaJuros, objGetTaxaJuros.GetTaxaJuros().TaxaJuros); }