public void Initalize() { _brokers = new DigicoinBrokerSelector(new IDigicoinBroker[] { _broker1, _broker2 }); _trades = new TradeRepository(); _trader = new DigicoinTrader(_brokers, _trades); }
public void Initialize() { _brokers = Substitute.For<IDigicoinBrokerSelector>(); _repository = Substitute.For<ITradeRepository>(); _trader = new DigicoinTrader(_brokers, _repository); }