private static Int32 GetObjectID(String url, data.FeedItemType feedItemType)
        {
            switch (feedItemType)
            {
            case data.FeedItemType.WallComment:
                return(data.Member.GetMemberViaNickname(UrlProcessor.ExtractWallName(url)).MemberID);

            case data.FeedItemType.Video:
            case data.FeedItemType.BookmarkedVideo:
                return(data.Video.GetVideoByWebVideoIDWithJoin(UrlProcessor.ExtractWebVideoID(url)).VideoID);

            case data.FeedItemType.Photo:
                return(data.PhotoCollection.GetPhotoCollectionByWebPhotoCollectionID(UrlProcessor.ExtractWebPhotoCollectionID(url)).PhotoCollectionID);

            case data.FeedItemType.BookmarkedPhoto:
                return(data.Photo.GetPhotoByWebPhotoIDWithJoin(UrlProcessor.ExtractWebPhotoID(url)).PhotoID);

            case data.FeedItemType.Ask:
                return(data.AskAFriend.GetAskAFriendByWebAskAFriendID(UrlProcessor.ExtractWebAskID(url)).AskAFriendID);

            case data.FeedItemType.Blog:
                return(data.BlogEntry.GetBlogEntryByWebBlogEntryID(UrlProcessor.ExtractWebBlogEntryID(url)).BlogEntryID);

            default:
                return(0);
            }
        }
 public void ExtractWallNameTest()
 {
     Assert.AreEqual("shelton", UrlProcessor.ExtractWallName("/users/shelton/wall"));
 }