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