public void Handle(IAccount account, MarketDataManager marketDataManager) { double price = marketDataManager.GetPrice(share); if (price > 0) { account.BuyStock(share, quantity, marketDataManager.GetPrice(share)); } }