Ejemplo n.º 1
0
        public void GetVerificationTestNull()
        {
            //Arrange
            string messageId = null;
            Twizo  twizo     = new Twizo(apiKey, apiHost);

            //Act
            twizo.GetVerification(messageId);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public TwizoAPI.Entity.Verification Refresh()
        {
            Twizo twizo = new Twizo(this.apiKey, this.apiHost);

            return(twizo.GetVerification(this.messageId));
        }