/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="AccountService"/> class. /// </summary> /// <param name="settingService">The setting service.</param> /// <param name="accountRepository">The account repository.</param> /// <param name="shareQuoteProvider">The share quote provider.</param> /// <param name="shareInfoProvider">The share info provider.</param> public AccountService( ISettingService settingService, IAccountRepository accountRepository, IShareQuoteProvider shareQuoteProvider, IShareInfoProvider shareInfoProvider) { _settingService = settingService; _accountRepository = accountRepository; _shareQuoteProvider = shareQuoteProvider; _shareInfoProvider = shareInfoProvider; }
/// <summary> /// Initializes a new instance of the <see cref="SharesController"/> class. /// </summary> /// <param name="shareInfoProvider">Injected instance of <see cref="IShareInfoProvider"/>.</param> /// <param name="shareQuoteProvider">Injected instance of <see cref="IShareQuoteProvider"/>.</param> /// <param name="shareFundamentalsProvider">Injected instance of <see cref="IShareFundamentalsProvider"/>.</param> /// <param name="sharePriceHistoryProvider">Injected instance of <see cref="ISharePriceHistoryProvider"/>.</param> /// <param name="shareDividendHistoryProvider">Injected instance of <see cref="IShareDividendHistoryProvider"/>.</param> public SharesController( IShareInfoProvider shareInfoProvider, IShareQuoteProvider shareQuoteProvider, IShareFundamentalsProvider shareFundamentalsProvider, ISharePriceHistoryProvider sharePriceHistoryProvider, IShareDividendHistoryProvider shareDividendHistoryProvider) { _shareInfoProvider = shareInfoProvider; _shareQuoteProvider = shareQuoteProvider; _shareFundamentalsProvider = shareFundamentalsProvider; _sharePriceHistoryProvider = sharePriceHistoryProvider; _shareDividendHistoryProvider = shareDividendHistoryProvider; }