Ejemplo n.º 1
0
        public void Test_1000_resendPhoneVerification()
        {
            this.LogIn();

            this.client.AddResponse(204, "");
            KiiUser.RequestResendPhoneVerificationCode();
        }
 public void Test_1001_resendPhoneVerification_logout()
 {
     this.client.AddResponse(204, "");
     KiiUser.RequestResendPhoneVerificationCode((Exception e) => {
         Assert.IsNotNull(e);
         Assert.IsInstanceOfType(typeof(InvalidOperationException), e);
     });
 }
        public void Test_1002_resendPhoneVerification_notFound()
        {
            this.LogIn();
            this.client.AddResponse(new CloudException(404, "{}"));
            this.client.AddResponse(204, "");
            Exception exp = null;

            KiiUser.RequestResendPhoneVerificationCode((Exception e) => {
                exp = e;
            });
            Assert.IsInstanceOfType(typeof(CloudException), exp);
        }
        public void Test_1000_resendPhoneVerification()
        {
            this.LogIn();

            this.client.AddResponse(204, "");
            Exception exp = null;

            KiiUser.RequestResendPhoneVerificationCode((Exception e) => {
                exp = e;
            });
            Assert.IsNull(exp);
        }
Ejemplo n.º 5
0
    void PerformResendPhone()
    {
        message       = "Request Resend Phone...";
        ButtonEnabled = false;

        KiiUser.RequestResendPhoneVerificationCode((Exception e) =>
        {
            ButtonEnabled = true;
            if (e != null)
            {
                message = "Failed to Resend phone " + e.ToString();
                return;
            }
            message = "Resend phpne succeeded";
        });
    }
Ejemplo n.º 6
0
 public void Test_1001_resendPhoneVerification_logout()
 {
     this.client.AddResponse(204, "");
     KiiUser.RequestResendPhoneVerificationCode();
 }
Ejemplo n.º 7
0
 public void Test_1002_resendPhoneVerification_notFound()
 {
     this.LogIn();
     this.client.AddResponse(new CloudException(404, "{}"));
     KiiUser.RequestResendPhoneVerificationCode();
 }