Esempio n. 1
0
        public void GetUserTeams_FromLoggedUser_ShouldReturnManyTeams()
        {
            teamsEndPoint.ShouldNotBe(null);
            var teams = teamsEndPoint.GetUserTeams();

            teams.Count.ShouldBeGreaterThan(0);
        }
        public void ListMembers_FromFirstTeamOfLoggedUser_ShouldReturnManyMembers()
        {
            teamsEndPoint.ShouldNotBe(null);
            var teams = teamsEndPoint.GetUserTeams();

            teams.Count.ShouldBeGreaterThan(0);

            var firstTeamResource = teamsEndPoint.TeamResource(teams[0].username);
            var members           = firstTeamResource.ListMembers(35);

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

            members.ShouldContain(m => m.username == userName);
        }