예제 #1
0
        public void ShoulDeleteInvitation()
        {
            Invitation invitation = new Invitation();

            invitation.Delete();

            Assert.Equal(ObjectState.Deleted, invitation.State);
        }
예제 #2
0
파일: invite.cs 프로젝트: xiongeee/BBX
 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);
     }
 }