Ejemplo n.º 1
0
        private void CreateNewRoom(System.Action functionFinishedCallback)
        {
            Action <XmlDocument> createRoomFinishedCallback = 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.CreateNewRoomService(mTestAccountId, "test room", PrivacyLevel.Private, createRoomFinishedCallback);
        }
Ejemplo n.º 2
0
 //the unlucky dude with an accountId of 0 is gonna gets LOTS of rooms!
 protected override void CreateNewRoomInDatabaseService(Guid sessionId, string roomName, PrivacyLevel privacyLevel, System.Action <XmlDocument> createRoomFinishedCallback)
 {
     RoomManagerServiceAPI.CreateNewRoomService(mMockServerAccount.AccountId, roomName, privacyLevel, createRoomFinishedCallback);
 }