Example #1
0
        static void Main(string[] args)
        {
            var stock = new StockTrade();

            var bsc = new BuysStockOrder(stock);
            var ssc = new SellStockOrder(stock);

            var agent = new Agent();

            agent.PlaceOrder(bsc);
            agent.PlaceOrder(ssc);
        }
Example #2
0
        static void Main(string[] args)
        {
            var stock = new StockTrade();

            var bsc = new BuysStockOrder(stock);
            var ssc = new SellStockOrder(stock);

            var agent = new Agent();

            agent.PlaceOrder(bsc);
            agent.PlaceOrder(ssc);
        }