public SellViewModel(AssetStore assetStore, IStockPriceService stockPriceService, ISellStockService sellStockService, IAccountStore accountStore) { AssetListingViewModel = new AssetListingViewModel(assetStore); SearchSymbolCommand = new SearchSymbolCommand(this, stockPriceService); SellStockCommand = new SellStockCommand(this, sellStockService, accountStore); ErrorMessageViewModel = new MessageViewModel(); StatusMessageViewModel = new MessageViewModel(); }
public BuyViewModel(IStockPriceService stockPriceService, IBuyStockService buyStockService, IAccountStore accountStore) { SearchSymbolCommand = new SearchSymbolCommand(this, stockPriceService); BuyStockCommand = new BuyStockCommand(this, buyStockService, accountStore); ErrorMessageViewModel = new MessageViewModel(); StatusMessageViewModel = new MessageViewModel(); }
public ManageUsersViewModel(IUserServices iUserServices, IExport iexport) { _manageUserService = iUserServices; _iExport = iexport; SearchSymbolCommand = new SearchSymbolCommand(this, iUserServices); UserExportCommand = new UserExportCommand(this, _iExport); ViewallCommand = new ViewallCommand(this, iUserServices); }
public WatchListViewModel( IStockService stockService, IUserManager userManager, IUserStockMappingDataService userStockMappingDataService) { SearchSymbolCommand = new SearchSymbolCommand(this, stockService, userStockMappingDataService, userManager); RemoveStockCommand = new RemoveStockCommand(this, userManager, userStockMappingDataService); this.userManager = userManager; this.userStockMappingDataService = userStockMappingDataService; this.stockService = stockService; InitializeAsync(); }
public BuyViewModel(IStockPriceService stockPriceService, IBuyStockService buyStockService) { SearchSymbolCommand = new SearchSymbolCommand(this, stockPriceService); BuyStockCommand = new BuyStockCommand(this, buyStockService); }