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)); } }
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"); } }