public UnitOfWork(MovieApiContext context)
 {
     _context   = context;
     Movies     = new MovieRepository(_context);
     Users      = new UserRepository(_context);
     WatchLists = new WatchListRepository(_context);
 }
 public UserWatchListsController(IWatchListRepository watchListRepository, IWoWItemRepository itemRepository, IConnectedRealmRepository realmRepository, IMapper mapper)
 {
     this.watchListRepository = watchListRepository;
     this.itemRepository      = itemRepository;
     this.realmRepository     = realmRepository;
     this.mapper = mapper;
 }
Example #3
0
 public ProfileController(IProductRepository productRepository,
                          IOfferRepository offerRepository, IWatchListRepository watchListRepository)
 {
     _productRepository   = productRepository;
     _offerRepository     = offerRepository;
     _watchListRepository = watchListRepository;
 }
Example #4
0
 public GetStockQueryHandler(
     IStockRepository stockRepository,
     IWatchListRepository watchListRepository,
     ICurrentPrincipal currentPrincipal)
 {
     this.stockRepository     = stockRepository;
     this.watchListRepository = watchListRepository;
     this.currentPrincipal    = currentPrincipal;
 }
Example #5
0
 public MovieController(IMovieRepository movieRepository, IMovieXPathRepository movieXPathRepository, IUnitOfWork unitOfWork, IBannerRepository bannerRepository,
                        IWatchListRepository watchListRepository)
 {
     _movieRepository      = movieRepository;
     _movieXPathRepository = movieXPathRepository;
     _unitOfWork           = unitOfWork;
     _bannerRepository     = bannerRepository;
     _watchListRepository  = watchListRepository;
 }
        public WatchListCollection()
        {
            db         = new WatchListContext();
            watchLists = new List <WatchList>();
            List <WatchListDto> watchListDtos = db.GetWatchList();

            foreach (WatchListDto watchListDto in watchListDtos)
            {
                watchLists.Add(new WatchList()
                {
                    MovieID = watchListDto.MovieID
                });
            }
        }
Example #7
0
        public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository, IWebHostEnvironment environment, IOfferRepository offerRepository,
                                 IWatchListRepository watchListRepository, ICommentRepository commentRepository, IBlobService blobService
                                 )
        {
            _productRepository = productRepository;

            _categoryRepository = categoryRepository;

            _offerRepository     = offerRepository;
            _watchListRepository = watchListRepository;

            _commentRepository = commentRepository;

            _blobService = blobService;

            _hostingEnvironment = environment;
        }
Example #8
0
 public DMA10AnalyzerService()
 {
     this.watchListRepository      = new WatchListRepository();
     this.fileDownloadService      = new FileDownloadService();
     this.stockPriceDataRepository = new StockPriceDataRepository();
 }
 public DMA10AnalyzerService(IWatchListRepository watchListRepository, IFileDownloadService fileDownloadService, IStockPriceDataRepository stockPriceDataRepository)
 {
     this.watchListRepository = watchListRepository;
     this.fileDownloadService = fileDownloadService;
     this.stockPriceDataRepository = stockPriceDataRepository;
 }
Example #10
0
 public DMA10AnalyzerService()
 {
     this.watchListRepository = new WatchListRepository();
     this.fileDownloadService = new FileDownloadService();
     this.stockPriceDataRepository = new StockPriceDataRepository();
 }
 public WatchListController(IWatchListRepository watchList, NewtonsoftJsonSerializer serializer, ILogger <WatchListController> log)
 {
     _watchList  = watchList;
     _serializer = serializer;
     _log        = log;
 }
 public AddStocksToWatchListCommandHandler(IWatchListRepository watchListRepository)
 {
     this.watchListRepository = watchListRepository;
 }
 public GetDefaultWatchListQueryHandler(IWatchListRepository watchListRepository)
 {
     this.watchListRepository = watchListRepository;
 }
Example #14
0
 public WatchListServices()
 {
     this.watchListRepository = new WatchListRepository();
 }
Example #15
0
 public DeleteWatchListCommandHandler(IWatchListRepository watchListRepository)
 {
     this.watchListRepository = watchListRepository;
 }
Example #16
0
 public WatchListService(IWatchListRepository repository)
 {
     this.repository = repository;
 }
Example #17
0
 public WatchListService(IWatchListRepository watchListRepository, IStockService stockService) : base(watchListRepository)
 {
     _watchListRepository = watchListRepository;
     _stockService        = stockService;
 }
Example #18
0
 public WatchListRepositoryTest(DatabaseFixture fixture)
 {
     this.databaseFixture     = fixture;
     this.WatchListRepository = new WatchListRepository(this.databaseFixture.dbContext);
 }
Example #19
0
 public DMA10AnalyzerService(IWatchListRepository watchListRepository, IFileDownloadService fileDownloadService, IStockPriceDataRepository stockPriceDataRepository)
 {
     this.watchListRepository      = watchListRepository;
     this.fileDownloadService      = fileDownloadService;
     this.stockPriceDataRepository = stockPriceDataRepository;
 }
Example #20
0
 public WatchListServices(IWatchListRepository watchListRepository)
 {
     this.watchListRepository = watchListRepository;
 }
Example #21
0
 public WatchListServices()
 {
     this.watchListRepository = new WatchListRepository();
 }
Example #22
0
 public WatchListServices(IWatchListRepository watchListRepository)
 {
     this.watchListRepository = watchListRepository;
 }
 public WatchListsController(IWatchListRepository watchListRepository, IMapper mapper)
 {
     this.watchListRepository = watchListRepository;
     this.mapper = mapper;
 }