public void StartBiddingIn(FakeAuctionServer auction) { ThreadStart threadStart = () => Run(auction); var thread = new Thread(threadStart) {IsBackground = true}; thread.Start(); applicationLaunchEvent.WaitOne(TimeSpan.FromSeconds(1)); driver = new AuctionSniperDriver(1000); driver.ShowsSniperStatus(StatusJoining); }
private void Run(FakeAuctionServer auction) { try { Program.Main(XmppHostname, SniperId, SniperPassword, auction.GetItemId()); applicationLaunchEvent.Set(); } catch (Exception e) { Console.WriteLine(e); } }
public void SetUp() { auction = new FakeAuctionServer("item-54321"); application = new ApplicationRunner(); }