コード例 #1
0
 public void Setup()
 {
     //ConnectionFactory cf = new ConnectionFactory("tcp://localhost:7222");
     //Connection c = cf.CreateConnection();
     //Session tibcoSession = null;// c.CreateSession(false, SessionMode.AutoAcknowledge);
     mocks = new MockRepository();
     session = (ISession) mocks.CreateMock(typeof (ISession));
     converter = new SimpleMessageConverter();
 }
コード例 #2
0
ファイル: EmsTemplate.cs プロジェクト: fgq841103/spring-net
 /// <summary> Initialize the default implementations for the template's strategies:
 /// DynamicDestinationResolver and SimpleMessageConverter.
 /// </summary>
 protected virtual void InitDefaultStrategies()
 {
     MessageConverter = new SimpleMessageConverter();
 }