public AuctionSniperViewModel(int auctionId, int stopPrice, string bidder, XmppChat chat) { _auctionId = auctionId; _auctionSniper = new AuctionSniper(bidder, stopPrice); _chat = chat; _chat.MessageReceived += ChatMessageRecieved; _chat.SendMessage(AuctionCommand.Join().ToString()); }
public void Join_command_is_of_appropriate_content() { AuctionCommand command = AuctionCommand.Join(); command.ToString().ShouldEqual("SOLVersion: 1.1; Command: JOIN;"); }