public void SetUp() { application = new ApplicationImpl(); SessionSettings settings = new SessionSettings( "c:\\development\\quickfix\\test\\cfg\\at_client.cfg" ); MessageStoreFactory messageStoreFactory = new MemoryStoreFactory(); QuickFix42.MessageFactory messageFactory = new QuickFix42.MessageFactory(); initiator = new SocketInitiator (application, messageStoreFactory, settings, messageFactory); server = new Process(); server.StartInfo.FileName = "c:\\development\\quickfix\\test\\debug\\at\\at"; server.StartInfo.Arguments = "-f c:\\development\\quickfix\\test\\cfg\\at.cfg"; server.Start(); Thread quickFixThread = new Thread(RunThread); quickFixThread.Start(); for(int i = 0;i < 50;++i) { if(application.isLoggedOn()) { break; } Thread.Sleep(1000); } if(!application.isLoggedOn()) { throw new Exception(); } }
public void SetUp() { application = new ApplicationImpl(); SessionSettings settings = new SessionSettings("c:\\development\\quickfix\\test\\cfg\\at_client.cfg"); MessageStoreFactory messageStoreFactory = new MemoryStoreFactory(); QuickFix42.MessageFactory messageFactory = new QuickFix42.MessageFactory(); initiator = new SocketInitiator (application, messageStoreFactory, settings, messageFactory); server = new Process(); server.StartInfo.FileName = "c:\\development\\quickfix\\test\\debug\\at\\at"; server.StartInfo.Arguments = "-f c:\\development\\quickfix\\test\\cfg\\at.cfg"; server.Start(); Thread quickFixThread = new Thread(RunThread); quickFixThread.Start(); for (int i = 0; i < 50; ++i) { if (application.isLoggedOn()) { break; } Thread.Sleep(1000); } if (!application.isLoggedOn()) { throw new Exception(); } }