Exemplo n.º 1
0
        public void GetSmsTest()
        {
            //Arrange
            string recipient = "601151174973";
            string body      = "This is a unit test";
            string sender    = "Unit tester";
            Twizo  twizo     = new Twizo(apiKey, apiHost);

            //Act
            var sms = twizo.CreateSms(recipient, body, sender);

            sms.Send();
            string messageId = sms.messageId;
            var    newSms    = twizo.GetSms(messageId);

            //Assert
            Assert.AreEqual(sms.messageId, newSms.messageId);
            Assert.AreEqual(sms.recipient, newSms.recipient);
        }
Exemplo n.º 2
0
        public TwizoAPI.Entity.Sms Refresh()
        {
            Twizo twizo = new Twizo(this.apiKey, this.apiHost);

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