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); }
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"); }