Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            StockReciever IBMStock    = new StockReciever("IBM", 20);
            StockReciever GoogleStock = new StockReciever("Google", 10);

            BrokerInvoker BrokerInvoker = new BrokerInvoker();

            BrokerInvoker.takeIOrderCommand(new BuyStockCommand(IBMStock));
            BrokerInvoker.takeIOrderCommand(new SellStockCommand(GoogleStock));
            BrokerInvoker.placeIOrderCommands();
        }
Ejemplo n.º 2
0
 public SellStockCommand(StockReciever abcStock)
 {
     this.abcStock = abcStock;
 }