Esempio n. 1
0
        public void RemoveStockFromPortfolio(string inPortfolioID, string inStockName)
        {
            Stock     stock     = currentStocks.getStock(inStockName);
            Portfolio portfolio = currentPortfolio.getPortfolio(inPortfolioID);

            portfolio.removeStock(stock);
        }
Esempio n. 2
0
        public void RemoveStockFromPortfolio(string inPortfolioID, string inStockName, int numberOfShares)
        {
            Stock     stock     = currentStocks.getStock(inStockName);
            Portfolio portfolio = currentPortfolio.getPortfolio(inPortfolioID);

            portfolio.removeStock(stock, numberOfShares);
        }