Пример #1
0
 public ProfessorService(IProfessorRepository professorRepository, INotificator notificator, ICursoRepository cursoRepository, IEnderecoRepository enderecoRepository)
     : base(professorRepository, notificator)
 {
     _professorRepository = professorRepository;
     _cursoRepository     = cursoRepository;
     _enderecoRepository  = enderecoRepository;
 }
 public FornecedorService(IFornecedorRepository fornecedorRepository,
                          IEnderecoRepository enderecoRepository,
                          INotificador notificador) : base(notificador)
 {
     _fornecedorRepository = fornecedorRepository;
     _enderecoRepository   = enderecoRepository;
 }
 public PacienteService(IPacienteRepository pacienteRepository, IEnderecoRepository enderecoRepository, IAgendamentoRepository agendamentoRepository, IConsultaRepository consultaRepository)
 {
     this.pacienteRepository    = pacienteRepository;
     this.enderecoRepository    = enderecoRepository;
     this.agendamentoRepository = agendamentoRepository;
     this.consultaRepository    = consultaRepository;
 }
Пример #4
0
 public FuncionarioService(IFuncionarioRepository funcionarioRepository,
                           IEnderecoRepository enderecoRepository,
                           INotificador notificador) : base(notificador)
 {
     _funcionarioRepository = funcionarioRepository;
     _enderecoRepository    = enderecoRepository;
 }
 public ParticipanteController(IParticipanteRepository participanteRepository, IParticipanteSorteioRepository participanteSorteioRepository,
                               IEnderecoRepository enderecoRepository)
 {
     ParticipanteRepository        = participanteRepository;
     ParticipanteSorteioRepository = participanteSorteioRepository;
     EnderecoRepository            = enderecoRepository;
 }
 public ClienteController(IAcessoRepository acessoRepository, IUsuarioRepository usuarioRepository, IClienteRepository clienteRepository, IEnderecoRepository enderecoRepository)
 {
     _acessoRepository   = acessoRepository;
     _usuarioRepository  = usuarioRepository;
     _clienteRepository  = clienteRepository;
     _enderecoRepository = enderecoRepository;
 }
Пример #7
0
 public ConsultorCommandHandler(
     IOptions <ServiceManager> serviceManager,
     IHttpAppService httpAppService,
     IOnboardingRepository onboardingRepository,
     IConsultorRepository consultorRepository,
     IDadosBancariosRepository dadosBancariosRepository,
     IEnderecoRepository enderecoRepository,
     IRepresentanteRepository representanteRepository,
     IRepresentanteEmailRepository representanteEmailRepository,
     IRepresentanteTelefoneRepository representanteTelefoneRepository,
     ILogger <ConsultorCommandHandler> logger,
     IUnitOfWork uow,
     IMediatorHandler bus,
     INotificationHandler <DomainNotification> notifications)
     : base(uow, bus, notifications)
 {
     _serviceManager                  = serviceManager.Value;
     _httpAppService                  = httpAppService;
     _onboardingRepository            = onboardingRepository;
     _consultorRepository             = consultorRepository;
     _dadosBancariosRepository        = dadosBancariosRepository;
     _enderecoRepository              = enderecoRepository;
     _representanteRepository         = representanteRepository;
     _representanteEmailRepository    = representanteEmailRepository;
     _representanteTelefoneRepository = representanteTelefoneRepository;
     _logger = logger;
 }
Пример #8
0
 public EnderecoController(IMapper mapper, IEnderecoRepository enderecoRepository, IEnderecoService enderecoService, INotificador notificador)
 {
     _enderecoRepository = enderecoRepository;
     _mapper             = mapper;
     _enderecoService    = enderecoService;
     _notificador        = notificador;
 }
Пример #9
0
        public MainSeed(ConsultaContext contexto)
        {
            this.beneficiarioRepository = new BeneficiarioRepository(contexto);
            beneficiarioRepository.ClearAsync().Wait();


            this.cidadeRepository = new CidadeRepository(contexto);
            cidadeRepository.ClearAsync().Wait();

            this.consultaRepository = new ConsultaRespository(contexto);
            consultaRepository.ClearAsync().Wait();


            this.enderecoRepository = new EnderecoRepository(contexto);
            enderecoRepository.ClearAsync().Wait();

            this.especialidadeRepository = new EspecialidadeRepository(contexto);
            especialidadeRepository.ClearAsync().Wait();

            this.estadoRepository = new EstadoRepository(contexto);
            estadoRepository.ClearAsync().Wait();

            this.medicoRepository = new MedicoRepository(contexto);
            medicoRepository.ClearAsync().Wait();
        }
Пример #10
0
 public AdicionarEnderecoCommandHandler(INotificationContext notificationContext
                                        , IUnitOfWork uow
                                        , IEnderecoRepository repo
                                        , IMapper mapper) : base(notificationContext, uow, mapper)
 {
     _repo = repo;
 }
Пример #11
0
 public ContatoService(IContatoRepository contatoRepository,
                       IEnderecoRepository enderecoRepository,
                       INotificador notificador) : base(notificador)
 {
     _contatoRepository  = contatoRepository;
     _enderecoRepository = enderecoRepository;
 }
 public ViagemService(IViagemRepository fornecedorRepository,
                      IEnderecoRepository enderecoRepository,
                      INotificador notificador, IUnitOfWork uow) : base(notificador, uow)
 {
     _viagemRepository   = fornecedorRepository;
     _enderecoRepository = enderecoRepository;
 }
Пример #13
0
 public PessoaRepository(RouteContext context) : base(context)
 {
     enderecoRepository = new EnderecoRepository(Context);
     telefoneRepository = new TelefoneRepository(Context);
     emailRepository    = new EmailRepository(Context);
     agendaRepository   = new AgendaRepository(Context);
 }
 public ClienteService(IClienteRepository clienteRepository,
                       IEnderecoRepository enderecoRepository,
                       INotificador notificador) : base(notificador)
 {
     _clienteRepository  = clienteRepository;
     _enderecoRepository = enderecoRepository;
 }
Пример #15
0
 public FuncionarioService(IFuncionarioRepository funcionarioRepository, IUsuarioRepository usuarioRepository,
                           IEnderecoRepository enderecoRepository)
 {
     _funcionarioRepository = funcionarioRepository;
     _enderecoRepository    = enderecoRepository;
     _usuarioRepository     = usuarioRepository;
 }
Пример #16
0
 public FornecedoresController(IFornecedorRepository fornecedorRepository, IMapper mapper, IFornecedorService fornecedorService, INotificador notificador, IEnderecoRepository enderecoRepository) : base(notificador)
 {
     _fornecedorRepository = fornecedorRepository;
     _mapper             = mapper;
     _fornecedorService  = fornecedorService;
     _enderecoRepository = enderecoRepository;
 }
Пример #17
0
 public FornecedoresController(IFornecedorRepository fornecedorRepository,
                               IMapper mapper, IEnderecoRepository enderecoRepository)
 {
     _fornecedorRepository = fornecedorRepository;
     _enderecoRepository   = enderecoRepository;
     _mapper = mapper;
 }
Пример #18
0
 public GeocodeService(IFlurlClientFactory flurlClientFac,
                       IEnderecoRepository enderecoRepository,
                       IGeoLocationRepository geoLocationRepository)
 {
     this._flurlClient           = flurlClientFac.Get(_URL);
     this._enderecoRepository    = enderecoRepository;
     this._geoLocationRepository = geoLocationRepository;
 }
Пример #19
0
 public EnderecoService(IEnderecoRepository enderecoRepository,
                        IMapper mapper,
                        IUnitOfWork uow)
 {
     _enderecoRepository = enderecoRepository;
     _mapper             = mapper;
     _uow = uow;
 }
Пример #20
0
 public IEnderecoRepository EnderecoRepository()
 {
     if (_enderecoRepository == null)
     {
         _enderecoRepository = new EnderecoRepository(_conn, _trans);
     }
     return(_enderecoRepository);
 }
Пример #21
0
 public AgenciaService(IEnderecoRepository enderecorepository, IAgenciaRepository agenciarepository, IAgenciaUsuarioRepository agenciausuariorepository,
                       IClaimsRepository claimsRepository)
 {
     _enderecorepository       = enderecorepository;
     _agenciarepository        = agenciarepository;
     _agenciausuariorepository = agenciausuariorepository;
     _claimrepository          = claimsRepository;
 }
Пример #22
0
 public ImovelService(IImovelRepository imovelRepository, IImovel_ProprietarioRepository imovel_ProprietarioRepository, IEnderecoRepository enderecoRepository, IImovelDetalheBaseValorRepository imovelDetalheBaseValorRepository, IProprietarioRepository proprietarioRepository)
 {
     _imovelRepository = imovelRepository;
     _imovel_ProprietarioRepository    = imovel_ProprietarioRepository;
     _enderecoRepository               = enderecoRepository;
     _imovelDetalheBaseValorRepository = imovelDetalheBaseValorRepository;
     _proprietarioRepository           = proprietarioRepository;
 }
 public EnderecosController(IEnderecoRepository enderecoRepository,
                            INotificador notificador,
                            IMapper mapper) : base(notificador)
 {
     _enderecoRepository = enderecoRepository;
     _notificador        = notificador;
     _mapper             = mapper;
 }
 public UsuarioHandler(IUsuarioRepository usuarioRepository, IClienteRepository clienteRepository,
                       IEnderecoRepository enderecoRepository, IOperadorRepository operadorRepository)
 {
     _usuarioRepository  = usuarioRepository;
     _clienteRepository  = clienteRepository;
     _enderecoRepository = enderecoRepository;
     _operadorRepository = operadorRepository;
 }
Пример #25
0
 public EnderecoCommandHandler(IEnderecoRepository enderecoRepository,
                               IUnitOfWork uow,
                               IBus bus,
                               IDomainNotificationHandler <DomainNotification> notifications) : base(uow, bus, notifications)
 {
     _enderecoRepository = enderecoRepository;
     Bus = bus;
 }
        public FornecedorServiceTests()
        {
            _fornecedorRepositoryMock = Substitute.For <IFornecedorRepository>();
            _enderecoRepositoryMock   = Substitute.For <IEnderecoRepository>();
            _notificador = new Notificador();

            _sut = new FornecedorService(_fornecedorRepositoryMock, _enderecoRepositoryMock, _notificador);
        }
Пример #27
0
 public ClienteService(IClienteRepository clienteRepository,
                       IEnderecoRepository enderecoRepository,
                       ITelefoneRepository telefoneReposository
                       )
 {
     _telefoneRepository = telefoneReposository;
     _clienteRepository  = clienteRepository;
     _enderecoRepository = enderecoRepository;
 }
Пример #28
0
        public PedidoTests(DbFixture fixture)
        {
            var serviceProvider = fixture.ServiceProvider;

            _repository         = serviceProvider.GetService <IPedidoRepository>();
            _repositoryProduto  = serviceProvider.GetService <IProdutoRepository>();
            _repositoryEndereco = serviceProvider.GetService <IEnderecoRepository>();
            _repositoryCliente  = serviceProvider.GetService <IClienteRepository>();
        }
Пример #29
0
 public PedidoController()
 {
     pedidoRepository        = new PedidoRepository();
     clienteRepository       = new ClienteRepository();
     enderecoRepository      = new EnderecoRepository();
     tipoEntregaRepository   = new TipoEntregaRepository();
     tipoPagamentoRepository = new TipoPagamentoRepository();
     usuarioRepository       = new UsuarioRepository();
 }
Пример #30
0
 public RegistroController(ILoginRepository loginRepository, IPrestadorRepository prestadorRepository, IEmpresaRepository empresaRepository,
                           IConsumidorRepository consumidorRepository, IEnderecoRepository enderecoRepository)
 {
     _loginRepository      = loginRepository;
     _empresaRepository    = empresaRepository;
     _prestadorRepository  = prestadorRepository;
     _consumidorRepository = consumidorRepository;
     _enderecoRepository   = enderecoRepository;
 }
 public PessoaService(IEnderecoRepository enderecoRepository, IEstadoCivilRepository estadoCivilRepository,
     IEstadoRepository estadoRepository, IMeioComunicacaoRepository meioComunicacaoRepository, IPessoaRepository pessoaRepository,
     IPessoaFisicaRepository pessoaFisicaRepository, IPessoaJuridicaRepository pessoaJuridicaRepository,
     IPapelRepository papelRepository)
 {
     _enderecoRepository = enderecoRepository;
     _estadoCivilRepository = estadoCivilRepository;
     _estadoRepository = estadoRepository;
     _meioComunicacaoRepository = meioComunicacaoRepository;
     _papelRepository = papelRepository;
     _pessoaRepository = pessoaRepository;
     _pessoaFisicaRepository = pessoaFisicaRepository;
     _pessoaJuridicaRepository = pessoaJuridicaRepository;
 }
Пример #32
0
 public EnderecoService(IEnderecoRepository enderecoRepository)
 {
     _enderecoRepository = enderecoRepository;
 }