public void ShoulDeleteInvitation() { Invitation invitation = new Invitation(); invitation.Delete(); Assert.Equal(ObjectState.Deleted, invitation.State); }
public void ConvertInviteCode() { if (this.config.Regstatus == 2 && this.invitecodeinfo != null) { Invitation.ConvertInviteCodeToCredits(this.invitecodeinfo, this.invitationconfiginfo.InviteCodePayCount); //Invitation.DeleteInviteCode(this.invitecodeinfo.InviteId); invitecodeinfo.Delete(); string strinfo = (this.invitecodeinfo.SuccessCount - this.invitationconfiginfo.InviteCodePayCount > -1) ? "兑换成功" : "删除成功"; base.SetUrl("invite.aspx"); base.SetMetaRefresh(); base.SetShowBackLink(false); base.AddMsgLine(strinfo); } }