public CotacaoApp(IClienteRepository clienteRepository, ITaxaRepository taxaRepository, IExchangeRatesApiProxy exchangeRatesApiProxy, NotificacaoErro notificacoes) { _clienteRepository = clienteRepository; _taxaRepository = taxaRepository; _exchangeRatesApiProxy = exchangeRatesApiProxy; _notificacoes = notificacoes; }
public void Setup() { MapperConfig.RegisterMappings(); _taxaRepository = new TaxaRepository(new DataContext()); _taxaService = new TaxaService(_taxaRepository); }
public TransacaoController(ITaxaRepository taxaRepository, ITransacaoRepository transacaoRepository, IUnitOfWork uow) { _taxaRepository = taxaRepository; _transacaoRepository = transacaoRepository; _uow = uow; }
public TransacaoRepositoryTest() { Setup(); _repositoryTransacao = new TransacaoRepository(Contexto); _repositoryTaxa = new TaxaRepository(Contexto); _repositoryBandeira = new BandeiraRepository(Contexto); _repositoryAdquirente = new AdquirenteRepository(Contexto); _uow = new UnitOfWork(Contexto); }
public static async Task <double> CalcularTaxa(int codigo, ITaxaRepository repository = null) { // se nao foi passado nenhum repositorio, se vira para achar um, no caso pega no DI repository = repository ?? GetRepository(); var taxas = await repository.ListarTaxa(codigo); var valor = taxas.Sum(x => x.Valor); var fator = taxas.Sum(x => x.Fator); return((valor * fator) * 0.002); }
public TaxaRepositoryTest() { Setup(); _repository = new TaxaRepository(Contexto); _uow = new UnitOfWork(Contexto); }
public TaxaApp(ITaxaRepository taxaRepository) { _taxaRepository = taxaRepository; }
public void Setup() { _mock = Substitute.For <ITaxaRepository>(); _mock.GetAll().Returns(new List <Taxa>()); _taxaService = new TaxaService(_mock); }
public HomeController(ITaxaRepository repository) { _repository = repository; }
public CalculadoraResgateUtility(ITaxaRepository taxaIrRepository) { _taxaIrRepository = taxaIrRepository; }
public TaxaService(ITaxaRepository repository) : base(repository) { }
public TaxaController(ITaxaRepository taxaRepository, IUnitOfWork unitOfWork) { _taxaRepository = taxaRepository; _unitOfWork = unitOfWork; }
public TaxaService(ITaxaRepository taxaRepository) { _taxaRepository = taxaRepository; }
public TransacaoService(ITaxaRepository taxaRepository, ITransacaoRepository transacaoRepository) { _taxaRepository = taxaRepository; _transacaoRepository = transacaoRepository; }
public MdrRepository(ITaxaRepository taxaRepository) { _taxaRepository = taxaRepository; }