예제 #1
0
        public void ListMembers_FromFirstTeamOfLoggedUser_ShouldReturnManyMembers()
        {
            teamsEndPoint.ShouldNotBe(null);
            var teams = teamsEndPoint.GetUserTeams();

            teams.Count.ShouldBeGreaterThan(0);

            var firstTeamEndPoint = sharpBucket.TeamsEndPoint(teams[0].uuid);
            var members           = firstTeamEndPoint.ListMembers(35);

            members.Count.ShouldBeGreaterThan(0);
            var userName = sharpBucket.UserEndPoint().GetUser().username;

            members.ShouldContain(m => m.nickname == userName);
        }
예제 #2
0
 public void Init()
 {
     sharpBucket  = TestHelpers.SharpBucketV2;
     userEndPoint = sharpBucket.UserEndPoint();
 }
예제 #3
0
 public void Init()
 {
     sharpBucket  = TestHelpers.GetV2ClientAuthenticatedWithOAuth();
     userEndPoint = sharpBucket.UserEndPoint();
 }
예제 #4
0
 public bool IsAuthorized()
 {
     return(ValidSettings ? m_sharpBucket2?.UserEndPoint().GetUser() != null : false);
 }