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(); }
/// <summary> Initialize the default implementations for the template's strategies: /// DynamicDestinationResolver and SimpleMessageConverter. /// </summary> protected virtual void InitDefaultStrategies() { MessageConverter = new SimpleMessageConverter(); }