Пример #1
0
 public CalcularValorLigacao()
 {
     _tarifaLigacaoRepository  = new TarifaLigacaoRepository(new VxTelContext());
     _planoTelefoniaRepository = new PlanoTelefoniaRepository(new VxTelContext());
     _notification             = new Notification();
     _calcularValorLigacao     = new CalcularPrecoTarifaPorPlano(_planoTelefoniaRepository, _notification, _tarifaLigacaoRepository);
 }
Пример #2
0
 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);
 }
Пример #3
0
 public PlanoTelefoniaFacade(ICalcularPrecoTarifaPorPlano calcularValorLigacao,
                             ICompararPrecoEntrePlano calcularTarifaLigacaoComPlanoESemPlano)
 {
     _calcularTarifaLigacaoComPlanoESemPlano = calcularTarifaLigacaoComPlanoESemPlano;
     _calcularValorLigacao = calcularValorLigacao;
 }
Пример #4
0
 public CalcularTarifaLigacaoComPlanoESemPlano(ICalcularPrecoTarifaPorPlano calcularValorLigacao)
 {
     _useCase = calcularValorLigacao;
 }