Exemplo n.º 1
0
        public ConsoleAuctionSniperDriver(string inHostName, string inId, string inPassword, string inAuctionItem, int inTimeout)
        {
            mQueue = new MessageQueue();

            mApp = new AuctionSniperConsole();
            mApp.BeginJoining += (conn) => {
                mQueue.AssignEvents(conn);
            };
            Assert.That(mApp.Status, Is.EqualTo(SniperStatus.Disconnected));

            this.JId = TestHelper.ToJId(inId);

            mApp.RunShell(
                inHostName,
                new AuctionCredencial {Id = this.JId, Password = inPassword},
                inAuctionItem
            );
        }