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); }
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"; }); }
public void Test_0002_resendEmailVerification_notFound() { this.LogIn(); this.client.AddResponse(new CloudException(404, "{}")); KiiUser.RequestResendEmailVerification(); }