ListRoomsAsNativeObjects() public method

Returns the list of available rooms as native C# objects
public ListRoomsAsNativeObjects ( ) : List
return List
コード例 #1
0
ファイル: ClientTests.cs プロジェクト: jfurie/HipChat.net
 public void TestListRoomsAsNativeObjects()
 {
     var client = new HipChat.HipChatClient(defaultClient.Token, HipChat.HipChatClient.ApiResponseFormat.XML);
     var rooms = client.ListRoomsAsNativeObjects();
     Assert.IsInstanceOfType(rooms, typeof(List<HipChat.Entities.Room>));
     Assert.IsTrue(rooms.Count > 0); //HACK: the number of rooms is variable, so just check that it's greater than 0 - bit if a hack
 }
コード例 #2
0
ファイル: ClientTests.cs プロジェクト: xremix/HipChat.net
        public void TestListRoomsAsNativeObjects()
        {
            var client = new HipChat.HipChatClient(defaultClient.Token, HipChat.HipChatClient.ApiResponseFormat.XML);
            var rooms  = client.ListRoomsAsNativeObjects();

            Assert.IsInstanceOfType(rooms, typeof(List <HipChat.Entities.Room>));
            Assert.IsTrue(rooms.Count > 0); //HACK: the number of rooms is variable, so just check that it's greater than 0 - bit if a hack
        }