예제 #1
0
        // ex {"ktz.local", "sniper", "sniper", "item-54321"}
        public static void Main(string[] args)
        {
            var console    = new AuctionSniperConsole();
            var credencial = new AuctionCredencial {
                Id       = args[1],
                Password = args[2]
            };

            console.RunShell(args[0], credencial, args[3]);

            console.Terminate();
        }
예제 #2
0
        // ex {"ktz.local", "sniper", "sniper", "item-54321"}
        public static void Main(string[] args)
        {
            var console = new AuctionSniperConsole();
            var credencial = new AuctionCredencial {
                Id = args[1],
                Password = args[2]
            };

            console.RunShell(args[0], credencial, args[3]);

            console.Terminate();
        }
예제 #3
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
            );
        }