Beispiel #1
0
        private void GetNewUserSessionOwnedRoomsTest(System.Action functionFinishedCallback)
        {
            Action <XmlDocument> getSessionOwnedRoomsServiceCallback = delegate(XmlDocument xmlResponse)
            {
                AssertNumberOfRoomsFromXml(0, xmlResponse);
                functionFinishedCallback();
            };

            RoomManagerServiceAPI.GetSessionOwnedRoomsService(mTestAccountId, getSessionOwnedRoomsServiceCallback);
        }
Beispiel #2
0
        private void GetUserWithRoomsSessionOwnedRoomsTest(System.Action functionFinishedCallback)
        {
            Action <XmlDocument> getSessionOwnedRoomsServiceCallback = delegate(XmlDocument xmlResponse)
            {
                List <RoomProperties> roomsProperties = AssertNumberOfRoomsFromXml(1, xmlResponse);

                if (roomsProperties[0].RoomName != "test room" ||
                    roomsProperties[0].RoomType != RoomType.GreenScreenRoom ||
                    roomsProperties[0].RoomItemsXml.OuterXml != "<Items></Items>" ||
                    roomsProperties[0].RoomId != null ||
                    roomsProperties[0].PrivacyLevel != PrivacyLevel.Private ||
                    roomsProperties[0].AccountCreatingRoom != mTestAccountId)
                {
                    throw new System.Exception("We did not receive the expected results with this returned room.");
                }

                functionFinishedCallback();
            };

            RoomManagerServiceAPI.GetSessionOwnedRoomsService(mTestAccountId, getSessionOwnedRoomsServiceCallback);
        }