public GrupoOfertaService(AzureService azureService, SyncronizedAccessService syncronizedAccessService)
 {
     this.azureService       = azureService;
     grupoRepository         = syncronizedAccessService.GrupoOfertaRepository;
     participantesRepository = syncronizedAccessService.ParticipanteGrupoRepository;
     userRepository          = syncronizedAccessService.UserRepository;
 }
 public GenericRepository(AzureService azureService)
 {
     Cache          = new ConcurrentDictionary <string, TModel>();
     Client         = azureService.Client;
     SyncTableModel = azureService.GetTable <TModel>();
     LastRefresh    = DateTime.Now;
 }
 public ListaCompraService(AzureService azureService, OfertasService ofertasService, SyncronizedAccessService syncronizedAccessService)
 {
     this.azureService            = azureService;
     this.ofertasService          = ofertasService;
     listaCompraRepository        = syncronizedAccessService.ListaCompraRepository;
     participantesRepository      = syncronizedAccessService.ParticipanteListaCompraRepository;
     userRepository               = syncronizedAccessService.UserRepository;
     produtoListaCompraRepository = syncronizedAccessService.ProdutoListaCompraRepository;
 }
Beispiel #4
0
 public SyncronizedAccessService(AzureService azureService)
 {
     this.azureService                 = azureService;
     OfertaRepository                  = new GenericRepository <Oferta>(azureService);
     CarteiraProdutoRepository         = new GenericRepository <CarteiraProduto>(azureService);
     EstabelecimentoRepository         = new GenericRepository <Estabelecimento>(azureService);
     MarcaRepository                   = new GenericRepository <Marca>(azureService);
     UnidadeMedidaRepository           = new GenericRepository <UnidadeMedida>(azureService);
     ProdutoRepository                 = new GenericRepository <Produto>(azureService);
     TipoRepository                    = new GenericRepository <Tipo>(azureService);
     GrupoOfertaRepository             = new GenericRepository <GrupoOferta>(azureService);
     HistoricoOfertaRepository         = new GenericRepository <HistoricoOferta>(azureService);
     ParticipanteGrupoRepository       = new GenericRepository <ParticipanteGrupo>(azureService);
     CategoriaRepository               = new GenericRepository <Categoria>(azureService);
     UserRepository                    = new GenericRepository <User>(azureService);
     MonitoramentoOfertaRepository     = new GenericRepository <MonitoramentoOferta>(azureService);
     ListaCompraRepository             = new GenericRepository <ListaCompra>(azureService);
     ParticipanteListaCompraRepository = new GenericRepository <ParticipanteLista>(azureService);
     ProdutoListaCompraRepository      = new GenericRepository <ProdutoListaCompra>(azureService);
 }
 public UserService(AzureService azureService)//, SyncronizedAccessService syncronizedAccessService)
 {
     this.azureService = azureService;
     //FirstUsage = syncronizedAccessService.FirstUsage().Result;
     userRepository = new GenericRepository <User>(azureService);
 }