static void Main(string[] args) { StockManager stockManager = new StockManager(); BuyStock buyStock = new BuyStock(stockManager); SellStock sellStock = new SellStock(stockManager); StockController controller = new StockController(); controller.TakeOrder(buyStock); controller.TakeOrder(sellStock); controller.PlaceOrder(); Console.ReadLine(); }
public SellStock(StockManager stockManager) { _stockManager = stockManager; }
public BuyStock(StockManager stockManager) { _stockManager = stockManager; }