예제 #1
0
        public SellStockCommand(SellViewModel viewModel, ISellStockService sellStockService, IAccountStore accountStore)
        {
            _viewModel        = viewModel;
            _sellStockService = sellStockService;
            _accountStore     = accountStore;

            _viewModel.PropertyChanged += ViewModel_PropertyChanged;
        }
예제 #2
0
 public SellStockCommand(SellViewModel viewModel, ISellStockService sellStockService, IAccountStore accountStore)
 {
     _viewModel        = viewModel;
     _sellStockService = sellStockService;
     _accountStore     = accountStore;
 }
예제 #3
0
 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();
 }
예제 #4
0
 public SellStockCommand(SellViewModel sellViewModel, ISellStockService sellStockService, IAccountStore accountStore)
 {
     this.sellViewModel    = sellViewModel;
     this.sellStockService = sellStockService;
     this.accountStore     = accountStore;
 }
예제 #5
0
 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;
 }