Beispiel #1
0
        public void TestServiceSms()
        {
            bool res = true;

            try
            {
                Client         client = new Client(publickey, privatekey, mode);
                PlaceOrderInfo order  = new PlaceOrderInfo(
                    "12",
                    "M4 C# SDK",
                    180,
                    "Eduardo Aguilar",
                    "*****@*****.**"
                    );
                NewOrderInfo neworder = client.api.placeOrder(order);
                SmsInfo      response = client.api.sendSmsInstructions(phone_number, neworder.getId());
                res = !response.getType().Equals("");
            }
            catch (Exception e)
            {
                res = false;
            }

            Assert.IsTrue(res);
        }