public void GetVerificationTestNull() { //Arrange string messageId = null; Twizo twizo = new Twizo(apiKey, apiHost); //Act twizo.GetVerification(messageId); }
public void GetVerificationTest() { //Arrange string recipient = "601151174973"; Twizo twizo = new Twizo(apiKey, apiHost); //Act var verification = twizo.CreateVerification(recipient); verification.Send(); string messageId = verification.messageId; var newVerficiation = twizo.GetVerification(messageId); //Assert Assert.AreEqual(verification.messageId, newVerficiation.messageId); Assert.AreEqual(verification.recipient, newVerficiation.recipient); }
public TwizoAPI.Entity.Verification Refresh() { Twizo twizo = new Twizo(this.apiKey, this.apiHost); return(twizo.GetVerification(this.messageId)); }