Esempio n. 1
0
 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());
 }
Esempio n. 2
0
        public void Join_command_is_of_appropriate_content()
        {
            AuctionCommand command = AuctionCommand.Join();

            command.ToString().ShouldEqual("SOLVersion: 1.1; Command: JOIN;");
        }