public WatchlistController(IWatchlistRepository repository,
                            UserManager <Owner> userManager,
                            INotificationRepository notificationRepository)
 {
     _repository             = repository;
     _userManager            = userManager;
     _notificationRepository = notificationRepository;
 }
예제 #2
0
 public CreateNotifications(IWatchlistRepository watchlistRepository,
                            INotificationRepository notificationRepository,
                            IHubContext <SignalServer> hubContext)
 {
     _watchlistRepository    = watchlistRepository;
     _notificationRepository = notificationRepository;
     _hubContext             = hubContext;
 }
예제 #3
0
 public NotificationRepository(ApplicationDbContext context,
                               IWatchlistRepository watchlistRepository,
                               IHubContext <SignalServer> hubContext)
 {
     _context             = context;
     _watchlistRepository = watchlistRepository;
     _hubContext          = hubContext;
 }
예제 #4
0
 public WatchlistController(IWatchlistRepository watchlistRepository,
                            UserManager <ApplicationUser> userManager,
                            IClientNotification clientNotification)
 {
     _watchlistRepository = watchlistRepository;
     _userManager         = userManager;
     _clientNotification  = clientNotification;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WatchlistService"/> class.
 /// </summary>
 /// <param name="watchlistRepository">The watchlist repository.</param>
 /// <param name="shareInfoProvider">The share information provider.</param>
 /// <param name="shareQuoteProvider">The share quote provider.</param>
 public WatchlistService(
     IWatchlistRepository watchlistRepository,
     IShareInfoProvider shareInfoProvider,
     IShareQuoteProvider shareQuoteProvider)
 {
     _watchlistRepository = watchlistRepository;
     _shareInfoProvider   = shareInfoProvider;
     _shareQuoteProvider  = shareQuoteProvider;
 }
예제 #6
0
 public PetController(IPetRepository petRepository,
                      UserManager <Owner> userManager,
                      IUpdatePetRepository updatePetRepository,
                      IWatchlistRepository watchlistRepository,
                      INotificationRepository notificationRepository,
                      IHubContext <SignalServer> hubContext,
                      IClientNotification clientNotification)
 {
     _petRepository          = petRepository;
     _userManager            = userManager;
     _updatePetRepository    = updatePetRepository;
     _watchlistRepository    = watchlistRepository;
     _notificationRepository = notificationRepository;
     _hubContext             = hubContext;
     _clientNotification     = clientNotification;
 }
예제 #7
0
 public WatchlistManager(IWatchlistRepository repository, IMarketRepository marketRepository, IdentityHttpService identityHttpService)
 {
     _repository          = repository;
     _marketRepository    = marketRepository;
     _identityHttpService = identityHttpService;
 }
예제 #8
0
 public WatchlistService(IOmdbApi omdbApi, IWatchlistRepository watchlistRepository)
 {
     _omdbApi             = omdbApi;
     _watchlistRepository = watchlistRepository;
 }
 public WatchlistService(IWatchlistRepository watchlistRepository)
 {
     _watchlistRepository = watchlistRepository;
 }
예제 #10
0
 public WatchlistController(IWatchlistRepository watchlistRepository, IPlaylistRepository playlistRepo)
 {
     _watchlistRepository = watchlistRepository;
     _playlistRepo        = playlistRepo;
 }
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="repository"></param>
 public WatchlistsController(IMapper mapper, IWatchlistRepository watchlistRepository)
 {
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _watchlistRepo = watchlistRepository ?? throw new ArgumentNullException(nameof(watchlistRepository));
 }
예제 #12
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="repository"></param>
 public UsersController(IUsersRepository repository, IMapper mapper, IWatchlistRepository watchlistRepository)
 {
     _repo          = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _watchlistRepo = watchlistRepository ?? throw new ArgumentNullException(nameof(watchlistRepository));
 }
 public NotificationRepository(AppDbContext db, IWatchlistRepository watchlistRepository)
 {
     _db = db;
     _watchlistRepository = watchlistRepository;
 }