public TickersViewModel(IReactiveTrader reactiveTrader,
                         IConcurrencyService concurrencyService,
     TickerViewModelFactory tickerViewModelFactory)
 {
     Tickers = new ObservableCollection<TickerViewModel>();
     Tickers.Add(tickerViewModelFactory.Create("Yahoo"));
     Tickers.Add(tickerViewModelFactory.Create("Google"));
     Tickers.Add(tickerViewModelFactory.Create("Apple"));
     Tickers.Add(tickerViewModelFactory.Create("Facebook"));
     Tickers.Add(tickerViewModelFactory.Create("Microsoft"));
     Tickers.Add(tickerViewModelFactory.Create("Twitter"));
     this.tickerRepository = reactiveTrader.TickerRepository;
     this.concurrencyService = concurrencyService;
     LoadTrades();
 }
Esempio n. 2
0
 public TickersViewModel(IReactiveTrader reactiveTrader,
                         IConcurrencyService concurrencyService,
                         TickerViewModelFactory tickerViewModelFactory)
 {
     Tickers = new ObservableCollection <TickerViewModel>();
     Tickers.Add(tickerViewModelFactory.Create("Yahoo"));
     Tickers.Add(tickerViewModelFactory.Create("Google"));
     Tickers.Add(tickerViewModelFactory.Create("Apple"));
     Tickers.Add(tickerViewModelFactory.Create("Facebook"));
     Tickers.Add(tickerViewModelFactory.Create("Microsoft"));
     Tickers.Add(tickerViewModelFactory.Create("Twitter"));
     this.tickerRepository   = reactiveTrader.TickerRepository;
     this.concurrencyService = concurrencyService;
     LoadTrades();
 }