Exemplo n.º 1
0
        public void Test_0000_resendEmailVerification()
        {
            this.LogIn();

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

            KiiUser.RequestResendEmailVerification((Exception e) => {
                exp = e;
            });
            Assert.IsInstanceOfType(typeof(InvalidOperationException), exp);
        }
        public void Test_0000_resendEmailVerification()
        {
            this.LogIn();

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

            KiiUser.RequestResendEmailVerification((Exception e) => {
                exp = e;
            });
            Assert.IsNull(exp);
        }
Exemplo n.º 5
0
    void PerformResendEmail()
    {
        message       = "Request Resend Email...";
        ButtonEnabled = false;

        KiiUser.RequestResendEmailVerification((Exception e) =>
        {
            ButtonEnabled = true;
            if (e != null)
            {
                message = "Failed to Resend email " + e.ToString();
                return;
            }
            message = "Resend email succeeded";
        });
    }
Exemplo n.º 6
0
 public void Test_0002_resendEmailVerification_notFound()
 {
     this.LogIn();
     this.client.AddResponse(new CloudException(404, "{}"));
     KiiUser.RequestResendEmailVerification();
 }