public Membership AddMembership(Membership membership)
        {
            var path = string.Format("/projects/{0}/memberships", membership.ProjectRef.Id);
            var result = this.RequestPivotal<Membership>(path, membership, "POST");

            return result;
        }
 public Membership RemoveMembership(Membership membership)
 {
     return RemoveMembership(membership.ProjectRef.Id, membership.Id);
 }
コード例 #3
0
        public void AddMembership()
        {
            Pivotal
                .Projects()
                    .Get(Project.Id)
                        .Membership()
                            .Add(p =>
                            {
                                var m = new Membership();
                                m.MembershipRole = MembershipRoleEnum.Member;
                                m.Person.Name = Properties.Settings.Default.NewMemberName;
                                m.Person.Email = Properties.Settings.Default.NewMemberEmail;

                                return m;
                            });
        }