// 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(); }
// 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(); }
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 ); }