Пример #1
0
        public void CreateClientANDMakeCall()
        {
            Client newclient = akount.makeclient("Demo123", "Demo@123").Create();

            var callinit = akount.MakeCall("+1234567", newclient.Properties.Login, "http://cloud.restcomm.com/restcomm/demos/hello-play.xml");

            Call lastcall = callinit.call();

            Assert.AreEqual(lastcall.Properties.To, newclient.Properties.Login);
            newclient.Delete(akount.Properties.Sid, akount.Properties.authtoken);
        }
Пример #2
0
        public void CreateClient()
        {
            var paradictionary = new Dictionary <string, string>();

            paradictionary.Add("Login", "username");
            paradictionary.Add("Password", "password");
            MockServer.AddPostRequest("/restcomm/2012-04-24/Accounts/" + akount.Properties.sid + "/Clients.json", paradictionary, clientresponse);
            Client c = akount.makeclient("username", "password").Create();

            Assert.AreEqual("dummyclient", c.Properties.sid);
        }