/// <summary>
 /// overloaded to create typed version of Query. Returns an
 /// Activities feed
 /// </summary>
 /// <param name="feedQuery"></param>
 /// <returns>ActivitiesFeed</returns>
 public ActivitiesFeed Query(ActivitiesQuery feedQuery)
 {
     return(base.Query(feedQuery) as ActivitiesFeed);
 }
 /// <summary>
 /// overloaded to create typed version of Query. Returns an 
 /// Activities feed
 /// </summary>
 /// <param name="feedQuery"></param>
 /// <returns>ActivitiesFeed</returns>
 public ActivitiesFeed Query(ActivitiesQuery feedQuery) 
 {
     return base.Query(feedQuery) as ActivitiesFeed;
 }
        /////////////////////////////////////////////////////////////////////////////


        //////////////////////////////////////////////////////////////////////
        /// <summary>runs a test on the YouTube factory object</summary> 
        //////////////////////////////////////////////////////////////////////
        [Test] public void YouTubeGetActivitiesTest()
        {
            ActivitiesQuery query = new ActivitiesQuery();
            query.ModifiedSince = new DateTime(1980, 12, 1);
            YouTubeService service = new YouTubeService("NETUnittests", this.ytClient, this.ytDevKey);

            if (this.userName != null)
            {
                service.Credentials = new GDataCredentials(this.ytUser, this.ytPwd);
            }
            ActivitiesFeed feed = service.Query(query) as ActivitiesFeed;

            foreach (ActivityEntry e in feed.Entries )
            {
                Assert.IsTrue(e.VideoId != null, "There should be a videoid");
            }
            service = null;
           
        }