Ejemplo n.º 1
0
        public void DeleteChatWorking()
        {
            Chat chat = new Chat
            {
                MaxNrOfUsers = 2,
                Name         = "testChat",
                ProfileId    = profileId,
                Type         = true
            };

            controller.SaveChat(profileId, chat);
            List <Chat> chats = controller.GetChatsByName("", profileId);

            Assert.AreEqual(true, controller.DeleteChat(chat.ProfileId, chats[chats.Count - 1].ActivityId));
        }