ToJId() public static method

public static ToJId ( string inUserName ) : jabber.JID
inUserName string
return jabber.JID
Example #1
0
        public void StartSellingItem()
        {
            var id = TestHelper.ToJId(
                string.Format(ItemIdAsLogin, this.ItemId)
                );

            this.Connection.User     = id.User;
            this.Connection.Server   = id.Server;
            this.Connection.Resource = id.Resource;
            this.Connection.Password = AuctionPassword;

            mQueue.AssignEvents(this.Connection);

            this.Connection.Connect();
            ConsoleAppHelper.WaitConnectingTo(this.Connection);
        }
        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
                );
        }