Пример #1
0
        public void BuildFollowersUrlTest()
        {
            UserRequestProcessor_Accessor reqProc = new UserRequestProcessor_Accessor();

            reqProc.BaseUrl = "http://twitter.com/";
            Dictionary <string, string> parameters =
                new Dictionary <string, string>
            {
                { "Type", ((int)UserType.Followers).ToString() },
                { "ID", "15411837" }
            };
            string expected = "http://twitter.com/statuses/followers/15411837.xml";
            var    actual   = reqProc.BuildFollowersUrl(parameters);

            Assert.AreEqual(expected, actual);
        }
        public void BuildFollowersUrlTest()
        {
            UserRequestProcessor_Accessor <User> reqProc = new UserRequestProcessor_Accessor <User>();

            reqProc.BaseUrl = "http://twitter.com/";
            Dictionary <string, string> parameters =
                new Dictionary <string, string>
            {
                { "Type", ((int)UserType.Followers).ToString() },
                { "ID", "15411837" },
                { "UserID", "123" },
                { "ScreenName", "JoeMayo" },
                { "Page", "2" }
            };
            string expected = "http://twitter.com/statuses/followers/15411837.xml?user_id=123&screen_name=JoeMayo&page=2";
            var    actual   = reqProc.BuildFollowersUrl(parameters);

            Assert.AreEqual(expected, actual);
        }
 public void BuildFollowersUrlTest()
 {
     UserRequestProcessor_Accessor<User> reqProc = new UserRequestProcessor_Accessor<User>();
     reqProc.BaseUrl = "http://twitter.com/";
     Dictionary<string, string> parameters =
         new Dictionary<string, string>
             {
                 { "Type", ((int)UserType.Followers).ToString() },
                 { "ID", "15411837" },
                 { "UserID", "123" },
                 { "ScreenName", "JoeMayo" },
                 { "Page", "2" }
             };
     string expected = "http://twitter.com/statuses/followers/15411837.xml?user_id=123&screen_name=JoeMayo&page=2";
     var actual = reqProc.BuildFollowersUrl(parameters);
     Assert.AreEqual(expected, actual);
 }