public CalcularValorLigacao() { _tarifaLigacaoRepository = new TarifaLigacaoRepository(new VxTelContext()); _planoTelefoniaRepository = new PlanoTelefoniaRepository(new VxTelContext()); _notification = new Notification(); _calcularValorLigacao = new CalcularPrecoTarifaPorPlano(_planoTelefoniaRepository, _notification, _tarifaLigacaoRepository); }
public CalcularPrecoTarifaPorPlano(IPlanoTelefoniaRepository planoTelefoniaRepository, Notification notification, ITarifaLigacaoRepository tarifaLigacaoRepository) { _planoTelefoniaRepository = planoTelefoniaRepository; _tarifaLigacaoRepository = tarifaLigacaoRepository; _notification = notification; }
public PlanoTelefoniaApplicationTeste() { _tarifaLigacaoRepository = new TarifaLigacaoRepository(new VxTelContext()); _planoTelefoniaRepository = new PlanoTelefoniaRepository(new VxTelContext()); _notification = new Notification(); _calcularValorLigacao = new CalcularPrecoTarifaPorPlano(_planoTelefoniaRepository, _notification, _tarifaLigacaoRepository); _calcularTarifaLigacaoComPlanoESemPlano = new CalcularTarifaLigacaoComPlanoESemPlano(_calcularValorLigacao); _planoTelefoniaApplication = new PlanoTelefoniaFacade(_calcularValorLigacao, _calcularTarifaLigacaoComPlanoESemPlano); }
public PlanoTelefoniaService(IPlanoTelefoniaRepository planoTelefoniaRepository) { _planoTelefoniaRepository = planoTelefoniaRepository; }