예제 #1
0
        public WhenAUserMessagesAnotherUser()
        {
            var room = Messaging1.CreateRoom(DateTime.Now.Ticks.ToString(CultureInfo.InvariantCulture));

            Messaging1.JoinRoom(room.Id);
            Messaging2.JoinRoom(room.Id);

            Messaging1.SendMessage(Account2.AccountId, _message);
            Thread.Sleep(1000);
            _messages = Messaging2.GetMessages();
        }
예제 #2
0
 public WhenAUserMessagesAnotherUserNotInTheSameRoom()
 {
     _sendResult = Messaging1.SendMessage(Account2.AccountId, _message);
     Thread.Sleep(1000);
     _messages = Messaging2.GetMessages();
 }
예제 #3
0
 public WhenAUserMessagesANonExistantUser()
 {
     _result = Messaging1.SendMessage(99999999, _message);
 }