Пример #1
0
        public void SendSMSTest() {

            var client = new Sinch.SMS.Client(key, secret);
            var messageid = client.SendSMS("+46722223355", "hello from .net").Result;
            Assert.AreNotEqual(0, messageid);

        }
Пример #2
0
        public void CheckStatusSucess()
        {

            var client = new Sinch.SMS.Client(key, secret);
            var messageid = client.SendSMS("+46722223355", "hello from .net").Result;
            var status = client.CheckStatus(messageid).Result;
            Assert.AreEqual(SMSStatus.Successful, status);

        }