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();
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 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();
 }
Exemple #5
0
 public BuyViewModel(IStockPriceService stockPriceService, IBuyStockService buyStockService)
 {
     SearchSymbolCommand = new SearchSymbolCommand(this, stockPriceService);
     BuyStockCommand     = new BuyStockCommand(this, buyStockService);
 }