コード例 #1
0
 public HttpResponseMessage UpdateInvitationStatus(TeamMember mem)
 {
     Initialize();
     logic.UpdateInviteStatus(mem.Id, mem.InviteeStatus);
     if (string.IsNullOrEmpty(logic.ErrorMessage))
     {
         return(Request.CreateResponse(HttpStatusCode.OK, "success"));
     }
     else
     {
         return(Request.CreateErrorResponse(HttpStatusCode.ExpectationFailed, logic.ErrorMessage));
     }
 }
コード例 #2
0
        public void UpdateInviteStatus()
        {
            User adminUser = userLogic.GetUserByEmail("*****@*****.**");
            var  obj       = teamLogic.VerifyUserInvited("*****@*****.**", adminUser.UserId);

            if (obj != null)
            {
                teamLogic.UpdateInviteStatus(obj.Id, License.Logic.Common.InviteStatus.Accepted.ToString());
                Assert.IsTrue(obj.Id > 0);
            }
            else
            {
                Assert.Fail("No invite exist for the sspecified EMail");
            }
        }