public FakeAuctionServer(string itemId) { _itemId = itemId; _xmpp = new XmppService( string.Format(ITEM_ID_AS_LOGIN, ItemId), AUCTION_PASSWORD, XMPP_HOSTNAME); _xmpp.AddMessageHandler(_listener); }
public void JoinAuction(string itemId) { string auctionUser = string.Format(ConfigurationManager.AppSettings[CONFIG_AUCTION_USER_FORMAT], itemId); _auction = new Auction(auctionUser); _xmpp.AddMessageHandler(new AuctionMessageTranslator(_xmpp.GetUser(), new AuctionSniperService(itemId, _auction, SnipersStatus)), auctionUser); _auction.XmppService = _xmpp; _auction.Join(); }