Esempio n. 1
0
        public void TestInValidLogin()
        {
            string username = "******";
            string password = "******";


            huaweisms.api.User user = new huaweisms.api.User(ctx);

            var res = user.Login(username, password);

            Assert.IsFalse(ctx.LoggedIn);
        }
Esempio n. 2
0
        public void TestSend2SMS()
        {
            string username = "******";
            string password = "******";

            huaweisms.api.User user = new huaweisms.api.User(ctx);
            huaweisms.api.SMS  sms  = new huaweisms.api.SMS(ctx);

            var res = user.Login(username, password);

            Assert.IsTrue(ctx.LoggedIn);

            res = sms.SendSMS("+12223334444", "This is first message from C# API");
            res = sms.SendSMS("+12223334444", "This is second message from C# API");
        }