public static void CheckMembership()
        {
            OAuthTokens tokens = Configuration.GetTokens();

            TwitterResponse <TwitterUser> secondUserResponse = TwitterUser.Show(tokens, "episod");

            Assert.IsNotNull(secondUserResponse);
            Assert.That(secondUserResponse.Result == RequestResult.Success);


            TwitterResponse <TwitterUser> membershipResponse = TwitterList.CheckMembership(
                tokens,
                "twitterapi",
                "team",
                secondUserResponse.ResponseObject.Id);

            Assert.IsNotNull(membershipResponse);
            Assert.That(membershipResponse.Result == RequestResult.Success);
        }
Esempio n. 2
0
        public void CheckMembership()
        {
            OAuthTokens tokens = Configuration.GetTokens();

            TwitterResponse <TwitterUser> secondUserResponse = TwitterUser.Show(tokens, "episod");

            Assert.IsNotNull(secondUserResponse, secondUserResponse.ErrorMessage ?? secondUserResponse.Result.ToString());
            Assert.IsTrue(secondUserResponse.Result == RequestResult.Success, secondUserResponse.ErrorMessage ?? secondUserResponse.Result.ToString());


            TwitterResponse <TwitterUser> membershipResponse = TwitterList.CheckMembership(
                tokens,
                "twitterapi",
                "team",
                secondUserResponse.ResponseObject.Id);

            Assert.IsNotNull(membershipResponse, membershipResponse.ErrorMessage ?? membershipResponse.Result.ToString());
            Assert.IsTrue(membershipResponse.Result == RequestResult.Success, membershipResponse.ErrorMessage ?? membershipResponse.Result.ToString());
        }