public FakeAuctionServer(string itemId)
        {
            _itemId = itemId;

            _xmpp = new XmppService(
                string.Format(ITEM_ID_AS_LOGIN, ItemId),
                AUCTION_PASSWORD,
                XMPP_HOSTNAME);

            _xmpp.AddMessageHandler(_listener);
        }
        public MainWindowViewModel()
        {
            if (Environment.GetCommandLineArgs().Length < 2)
                throw new Exception("Must specify an auction id!");

            AuctionIds = Environment.GetCommandLineArgs()[1].Split(new char[] { ',' });

            string jid = ConfigurationManager.AppSettings[CONFIG_JID];
            _xmpp = new XmppService(jid,
                                    ConfigurationManager.AppSettings[CONFIG_PASSWORD],
                                    ConfigurationManager.AppSettings[CONFIG_HOST]);

            _xmpp.Connect();

            foreach (string itemId in AuctionIds)
            {
                JoinAuction(itemId);
            }
        }