public SellStockCommand(SellViewModel viewModel, ISellStockService sellStockService, IAccountStore accountStore) { _viewModel = viewModel; _sellStockService = sellStockService; _accountStore = accountStore; _viewModel.PropertyChanged += ViewModel_PropertyChanged; }
public SellStockCommand(SellViewModel viewModel, ISellStockService sellStockService, IAccountStore accountStore) { _viewModel = viewModel; _sellStockService = sellStockService; _accountStore = accountStore; }
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 SellStockCommand(SellViewModel sellViewModel, ISellStockService sellStockService, IAccountStore accountStore) { this.sellViewModel = sellViewModel; this.sellStockService = sellStockService; this.accountStore = accountStore; }
public TransactionController(IAuthorizeUserService authorizeUserService, IBuyStockService buyStockService, ISellStockService sellStockService) { _authorizeUserService = authorizeUserService; _buyStockService = buyStockService; _sellStockService = sellStockService; }
public StocksController(IConfiguration configuration, ISellStockService sellStockService) { _token = configuration["IexConnection:Token"]; _sellStockService = sellStockService; }