public static void IsGetUsersOfChatWorks() { Chat chat = chatPrv.GetChatById(1); List <User> users = chatPrv.GetUsersOfChat(chat); Assert.That(users.Count == 3); }
/// <summary> /// Get all users from this chat /// </summary> /// <param name="id"></param> /// <returns>List of users</returns> public IList <UserInfoDTO> GetAllUsersFromChat(int id) { Logger.log.Debug("at WCFService.ChatService.GetAllUsersFromChat"); var chat = ChatProvider.GetChatById(id); var users = ChatProvider.GetUsersOfChat(chat); return(_userConverter.ToDataTransferEntityList(users.ToList())); }