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); }
public void Init() { sharpBucket = TestHelpers.SharpBucketV2; userEndPoint = sharpBucket.UserEndPoint(); }
public void Init() { sharpBucket = TestHelpers.GetV2ClientAuthenticatedWithOAuth(); userEndPoint = sharpBucket.UserEndPoint(); }
public bool IsAuthorized() { return(ValidSettings ? m_sharpBucket2?.UserEndPoint().GetUser() != null : false); }